Package io.datarouter.client.redis.codec
Class RedisTallyCodec
java.lang.Object
io.datarouter.client.redis.codec.RedisTallyCodec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeId(byte[] bytes) decodeId(io.lettuce.core.KeyValue<byte[], byte[]> kv) longdecodeValue(byte[] bytes) longdecodeValue(io.lettuce.core.KeyValue<byte[], byte[]> kv) byte[]
-
Field Details
-
TALLY_CODEC_VERSION
- See Also:
-
-
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
-