Uses of Class
org.apache.cassandra.utils.CounterId
Packages that use CounterId
-
Uses of CounterId in org.apache.cassandra.db.context
Methods in org.apache.cassandra.db.context that return CounterIdMethods in org.apache.cassandra.db.context with parameters of type CounterIdModifier and TypeMethodDescriptionCounterContext.createGlobal(CounterId id, long clock, long count) Creates a counter context with a single global, 2.1+ shard (a result of increment).CounterContext.createRemote(CounterId id, long clock, long count) Creates a counter context with a single remote shard.intCounterContext.findPositionOf(ByteBuffer context, CounterId id) Finds the position of a shard with the given id within the context (via binary search).CounterContext.getClockAndCountOf(ByteBuffer context, CounterId id) Returns the clock and the count associated with the given counter id, or (0, 0) if no such shard is present.voidCounterContext.ContextState.writeGlobal(CounterId id, long clock, long count) voidCounterContext.ContextState.writeLocal(CounterId id, long clock, long count) voidCounterContext.ContextState.writeRemote(CounterId id, long clock, long count) -
Uses of CounterId in org.apache.cassandra.utils
Methods in org.apache.cassandra.utils that return CounterIdModifier and TypeMethodDescriptionstatic CounterIdCounterId.fromInt(int n) Pack an int in a valid CounterId so that the resulting ids respects the numerical ordering.static CounterIdCounterId.generate()static CounterIdCounterId.getLocalId()static CounterIdCounterId.wrap(ByteBuffer id) static CounterIdCounterId.wrap(ByteBuffer bb, int offset) Methods in org.apache.cassandra.utils with parameters of type CounterId