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 Summary
Fields Modifier and Type Field Description static intCODEC_VERSIONintcodecVersionStringnodeNamePKprimaryKeyintschemaVersion -
Constructor Summary
Constructors Constructor Description MemcachedKey(int codecVersion, String nodeName, int schemaVersion, PK primaryKey) -
Method Summary
Modifier and Type Method Description static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
MemcachedKey<PK>decode(String stringKey, Class<PK> pkClass)static Stringencode(String nodeName, int schemaVersion, io.datarouter.model.key.primary.PrimaryKey<?> pk)static io.datarouter.storage.file.PathbeanKeyencodeKeyToPathbeanKey(String serviceName, String clientName, String tableName, int schemaVersion, Long autoSchemaVersion, io.datarouter.model.key.primary.PrimaryKey<?> pk)
-
Field Details
-
CODEC_VERSION
public static final int CODEC_VERSION- See Also:
- Constant Field Values
-
codecVersion
public final int codecVersion -
nodeName
-
schemaVersion
public final int schemaVersion -
primaryKey
-
-
Constructor Details
-
Method Details
-
encode
-
encodeKeyToPathbeanKey
-
decode
public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> MemcachedKey<PK> decode(String stringKey, Class<PK> pkClass)
-