Class RedisTallyCodec

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

public class RedisTallyCodec
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    RedisTallyCodec​(int version, io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<?,​?,​?> fieldInfo)  
  • Method Summary

    Modifier and Type Method Description
    io.datarouter.storage.tally.TallyKey decodeKey​(byte[] row)  
    java.util.Optional<java.lang.Long> decodeTallyValue​(io.lettuce.core.KeyValue<byte[],​byte[]> entry)  
    java.util.Optional<java.lang.Long> decodeTallyValue​(java.util.Optional<byte[]> byteTally)  
    byte[] encode​(io.datarouter.storage.tally.Tally databean)  
    byte[] encodeKey​(io.datarouter.storage.tally.TallyKey pk)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisTallyCodec

      public RedisTallyCodec​(int version, io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<?,​?,​?> fieldInfo)
  • Method Details

    • encodeKey

      public byte[] encodeKey​(io.datarouter.storage.tally.TallyKey pk)
    • encode

      public byte[] encode​(io.datarouter.storage.tally.Tally databean)
    • decodeKey

      public io.datarouter.storage.tally.TallyKey decodeKey​(byte[] row)
    • decodeTallyValue

      public java.util.Optional<java.lang.Long> decodeTallyValue​(java.util.Optional<byte[]> byteTally)
    • decodeTallyValue

      public java.util.Optional<java.lang.Long> decodeTallyValue​(io.lettuce.core.KeyValue<byte[],​byte[]> entry)