Package io.datarouter.client.redis.node
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
ConstructorsConstructorDescriptionRedisTallyNode(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 TypeMethodDescriptionvoiddeleteTally(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) voidvacuum(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, usesClientMethods inherited from class io.datarouter.storage.node.BaseNode
compareToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface io.datarouter.storage.node.Node
getChildNodes, getClientIds, getName, getPhysicalNodes, getPhysicalNodesForClient, usesClientMethods inherited from interface io.datarouter.storage.node.type.physical.PhysicalNode
clientAndTableNames, getClientId, getClientType, getFieldInfoMethods 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
- Specified by:
incrementAndGetCountin interfaceio.datarouter.storage.node.op.raw.TallyStorage
-
findTallyCount
- Specified by:
findTallyCountin interfaceio.datarouter.storage.node.op.raw.TallyStorage
-
getMultiTallyCount
public Map<String,Long> getMultiTallyCount(Collection<String> ids, io.datarouter.storage.config.Config config) - Specified by:
getMultiTallyCountin interfaceio.datarouter.storage.node.op.raw.TallyStorage
-
deleteTally
- Specified by:
deleteTallyin interfaceio.datarouter.storage.node.op.raw.TallyStorage
-
vacuum
public void vacuum(io.datarouter.storage.config.Config config) - Specified by:
vacuumin interfaceio.datarouter.storage.node.op.raw.TallyStorage
-