## Uses of Class
org.apache.cassandra.utils.CounterId

Packages that use CounterId
Package | Description
--- | ---
org.apache.cassandra.db |
org.apache.cassandra.db.context |
org.apache.cassandra.io.sstable |
org.apache.cassandra.utils |

### Uses of CounterId in org.apache.cassandra.db

Methods in org.apache.cassandra.db that return CounterId
Modifier and Type | Method and Description
--- | ---
`static CounterId` | SystemKeyspace.`getCurrentLocalCounterId()` Read the current local node id from the system keyspace or null if no such node id is recorded.

Methods in org.apache.cassandra.db with parameters of type CounterId
Modifier and Type | Method and Description
--- | ---
`boolean` | CounterColumn.`hasCounterId(CounterId id)` Check if a given counterId is found in this CounterColumn context.
`static void` | SystemKeyspace.`writeCurrentLocalCounterId(CounterId newCounterId, long now)` Write a new current local node id to the system keyspace.

### Uses of CounterId in org.apache.cassandra.db.context

Methods in org.apache.cassandra.db.context that return CounterId
Modifier and Type | Method and Description
--- | ---
`CounterId` | CounterContext.ContextState.`getCounterId()`

Methods in org.apache.cassandra.db.context with parameters of type CounterId
Modifier and Type | Method and Description
--- | ---
`java.nio.ByteBuffer` | CounterContext.`createRemote(CounterId id, long clock, long count, Allocator allocator)` Creates a counter context with a single remote shard.
`boolean` | CounterContext.`hasCounterId(java.nio.ByteBuffer context, CounterId id)` Checks whether the provided context has a count for the provided CounterId.
`void` | CounterContext.ContextState.`writeGlobal(CounterId id, long clock, long count)`
`void` | CounterContext.ContextState.`writeLocal(CounterId id, long clock, long count)`
`void` | CounterContext.ContextState.`writeRemote(CounterId id, long clock, long count)`

### Uses of CounterId in org.apache.cassandra.io.sstable

Fields in org.apache.cassandra.io.sstable declared as CounterId
Modifier and Type | Field and Description
--- | ---
`protected CounterId` | AbstractSSTableSimpleWriter.`counterid`

### Uses of CounterId in org.apache.cassandra.utils

Fields in org.apache.cassandra.utils declared as CounterId
Modifier and Type | Field and Description
--- | ---
`CounterId` | CounterId.CounterIdRecord.`id`

Methods in org.apache.cassandra.utils that return CounterId
Modifier and Type | Method and Description
--- | ---
`static CounterId` | CounterId.`fromInt(int n)` Function for test purposes, do not use otherwise.
`static CounterId` | CounterId.`generate()`
`static CounterId` | CounterId.`getLocalId()`
`static CounterId` | CounterId.`wrap(java.nio.ByteBuffer id)`
`static CounterId` | CounterId.`wrap(java.nio.ByteBuffer bb, int offset)`

Methods in org.apache.cassandra.utils with parameters of type CounterId
Modifier and Type | Method and Description
--- | ---
`int` | CounterId.`compareTo(CounterId o)`

Constructors in org.apache.cassandra.utils with parameters of type CounterId
Constructor and Description
`CounterId.CounterIdRecord(CounterId id, long timestamp)`