Class RedisTallyCodec

java.lang.Object
io.datarouter.client.redis.codec.RedisTallyCodec

public class RedisTallyCodec extends Object
  • Field Details

  • Constructor Details

    • RedisTallyCodec

      public RedisTallyCodec(io.datarouter.storage.util.Subpath path)
  • Method Details

    • encodeId

      public byte[] encodeId(String id)
    • decodeId

      public String decodeId(byte[] bytes)
    • decodeId

      public String decodeId(io.lettuce.core.KeyValue<byte[],byte[]> kv)
    • 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