Class RedisTallyNode

java.lang.Object
io.datarouter.storage.node.BaseNode<PK,D,F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder>
io.datarouter.client.redis.node.RedisTallyNode
All Implemented Interfaces:
io.datarouter.storage.node.Node<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder>, io.datarouter.storage.node.op.NodeOps<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally>, io.datarouter.storage.node.op.raw.TallyStorage, io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode, io.datarouter.storage.node.op.raw.TallyStorage.TallyStorageNode, io.datarouter.storage.node.type.physical.PhysicalNode<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder>, Comparable<io.datarouter.storage.node.Node<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder>>

public class RedisTallyNode extends io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder> implements io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode, io.datarouter.storage.node.op.raw.TallyStorage.TallyStorageNode
  • Field Summary

    Fields inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    OP_deleteTally, OP_findTallyCount, OP_getMultiTallyCount, OP_incrementAndGetCount, OP_vacuum
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisTallyNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, RedisTallyCodec codec, Supplier<DatarouterRedisClient> lazyClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteTally(String id, io.datarouter.storage.config.Config config)
     
    findTallyCount(String id, io.datarouter.storage.config.Config config)
     
    getMultiTallyCount(Collection<String> ids, io.datarouter.storage.config.Config config)
     
    incrementAndGetCount(String id, int delta, io.datarouter.storage.config.Config config)
     
    void
    vacuum(io.datarouter.storage.config.Config config)
     

    Methods inherited from class io.datarouter.storage.node.type.physical.base.BasePhysicalNode

    getChildNodes, getClientId, getClientIds, getClientType, getFieldInfo, getName, getPhysicalNodes, getPhysicalNodesForClient, toString, usesClient

    Methods inherited from class io.datarouter.storage.node.BaseNode

    compareTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface io.datarouter.storage.node.Node

    getChildNodes, getClientIds, getName, getPhysicalNodes, getPhysicalNodesForClient, usesClient

    Methods inherited from interface io.datarouter.storage.node.type.physical.PhysicalNode

    clientAndTableNames, getClientId, getClientType, getFieldInfo

    Methods inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    deleteTally, findTallyCount, getMultiTallyCount, incrementAndGetCount
  • Constructor Details

    • RedisTallyNode

      public RedisTallyNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.tally.TallyKey,io.datarouter.storage.tally.Tally,io.datarouter.storage.tally.Tally.TallyFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, RedisTallyCodec codec, Supplier<DatarouterRedisClient> lazyClient)
  • Method Details

    • incrementAndGetCount

      public Long incrementAndGetCount(String id, int delta, io.datarouter.storage.config.Config config)
      Specified by:
      incrementAndGetCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • findTallyCount

      public Optional<Long> findTallyCount(String id, io.datarouter.storage.config.Config config)
      Specified by:
      findTallyCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • getMultiTallyCount

      public Map<String,Long> getMultiTallyCount(Collection<String> ids, io.datarouter.storage.config.Config config)
      Specified by:
      getMultiTallyCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • deleteTally

      public void deleteTally(String id, io.datarouter.storage.config.Config config)
      Specified by:
      deleteTally in interface io.datarouter.storage.node.op.raw.TallyStorage
    • vacuum

      public void vacuum(io.datarouter.storage.config.Config config)
      Specified by:
      vacuum in interface io.datarouter.storage.node.op.raw.TallyStorage