Package io.datarouter.client.redis.codec
Class RedisTallyCodec
java.lang.Object
io.datarouter.client.redis.codec.RedisTallyCodec
public class RedisTallyCodec extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringTALLY_CODEC_VERSION -
Constructor Summary
Constructors Constructor Description RedisTallyCodec(io.datarouter.storage.util.Subpath path) -
Method Summary
Modifier and Type Method Description StringdecodeId(byte[] bytes)StringdecodeId(io.lettuce.core.KeyValue<byte[],byte[]> kv)longdecodeValue(byte[] bytes)longdecodeValue(io.lettuce.core.KeyValue<byte[],byte[]> kv)byte[]encodeId(String id)
-
Field Details
-
TALLY_CODEC_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RedisTallyCodec
public RedisTallyCodec(io.datarouter.storage.util.Subpath path)
-
-
Method Details
-
encodeId
-
decodeId
-
decodeId
-
decodeValue
public long decodeValue(io.lettuce.core.KeyValue<byte[],byte[]> kv) -
decodeValue
public long decodeValue(byte[] bytes)- Parameters:
bytes- String value of a long returned by Lettuce
-