Uses of Class
org.apache.cassandra.utils.CounterId
-
Packages that use CounterId Package Description org.apache.cassandra.db.context org.apache.cassandra.utils -
-
Uses of CounterId in org.apache.cassandra.db.context
Methods in org.apache.cassandra.db.context that return CounterId Modifier and Type Method Description CounterIdCounterContext.ContextState. getCounterId()Methods in org.apache.cassandra.db.context with parameters of type CounterId Modifier and Type Method Description java.nio.ByteBufferCounterContext. createGlobal(CounterId id, long clock, long count)Creates a counter context with a single global, 2.1+ shard (a result of increment).java.nio.ByteBufferCounterContext. createRemote(CounterId id, long clock, long count)Creates a counter context with a single remote shard.intCounterContext. findPositionOf(java.nio.ByteBuffer context, CounterId id)Finds the position of a shard with the given id within the context (via binary search).ClockAndCountCounterContext. getClockAndCountOf(java.nio.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 CounterId Modifier and Type Method Description static 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(java.nio.ByteBuffer id)static CounterIdCounterId. wrap(java.nio.ByteBuffer bb, int offset)Methods in org.apache.cassandra.utils with parameters of type CounterId Modifier and Type Method Description intCounterId. compareTo(CounterId o)
-