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)  
  • Method Summary

    Modifier and Type Method Description
    <D> D decode​(java.util.function.Supplier<D> supplier, java.util.Map<java.lang.String,​io.datarouter.model.field.Field<?>> fieldByPrefixedName, byte[] bytes)  
    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

  • Method Details

    • encodeKey

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

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

      public <D> D decode​(java.util.function.Supplier<D> supplier, java.util.Map<java.lang.String,​io.datarouter.model.field.Field<?>> fieldByPrefixedName, byte[] bytes)