Package io.datarouter.client.redis
Class RedisDatabeanCodec<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
java.lang.Object
io.datarouter.client.redis.RedisDatabeanCodec<PK,D,F>
public class RedisDatabeanCodec<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>> extends Object
-
Constructor Summary
Constructors Constructor Description RedisDatabeanCodec(int version, io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<PK,D,F> fieldInfo) -
Method Summary
Modifier and Type Method Description Ddecode(byte[] bytes)byte[]encode(D databean)Optional<io.datarouter.util.tuple.Twin<byte[]>>encodeIfValid(D databean)byte[]encodeKey(PK pk)List<byte[]>encodeKeys(Collection<PK> pks)