Class MemcachedKey<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>

java.lang.Object
io.datarouter.client.memcached.codec.MemcachedKey<PK>

public class MemcachedKey<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
extends Object
  • Field Details

  • Constructor Details

    • MemcachedKey

      public MemcachedKey​(int codecVersion, String nodeName, int schemaVersion, PK primaryKey)
  • Method Details

    • encode

      public static String encode​(String nodeName, int schemaVersion, io.datarouter.model.key.primary.PrimaryKey<?> pk)
    • encodeKeyToPathbeanKey

      public static io.datarouter.storage.file.PathbeanKey encodeKeyToPathbeanKey​(String serviceName, String clientName, String tableName, int schemaVersion, Long autoSchemaVersion, io.datarouter.model.key.primary.PrimaryKey<?> pk)
    • decode

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> MemcachedKey<PK> decode​(String stringKey, Class<PK> pkClass)