Class MemcachedTallyNode
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.memcached.node.MemcachedTallyNode
- 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 MemcachedTallyNode
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 MemcachedTallyNode(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, MemcachedTallyCodec tallyCodec, Supplier<DatarouterMemcachedClient> lazyClient) -
Method Summary
Modifier and Type Method Description voiddeleteTally(String tallyStringKey, io.datarouter.storage.config.Config config)Optional<Long>findTallyCount(String key, io.datarouter.storage.config.Config config)Map<String,Long>getMultiTallyCount(Collection<String> tallyStringKeys, io.datarouter.storage.config.Config config)LongincrementAndGetCount(String tallyStringKey, 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
getClientId, getClientType, getFieldInfoMethods inherited from interface io.datarouter.storage.node.op.raw.TallyStorage
deleteTally, findTallyCount, getMultiTallyCount, incrementAndGetCount
-
Constructor Details
-
MemcachedTallyNode
public MemcachedTallyNode(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, MemcachedTallyCodec tallyCodec, Supplier<DatarouterMemcachedClient> lazyClient)
-
-
Method Details
-
incrementAndGetCount
public Long incrementAndGetCount(String tallyStringKey, int delta, io.datarouter.storage.config.Config config)- 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> tallyStringKeys, 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
-