| Package | Description |
|---|---|
| org.apache.cassandra.db | |
| org.apache.cassandra.db.context | |
| org.apache.cassandra.io.sstable | |
| org.apache.cassandra.utils |
| 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.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
CounterId |
CounterContext.ContextState.getCounterId() |
| 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) |
| Modifier and Type | Field and Description |
|---|---|
protected CounterId |
AbstractSSTableSimpleWriter.counterid |
| Modifier and Type | Field and Description |
|---|---|
CounterId |
CounterId.CounterIdRecord.id |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
int |
CounterId.compareTo(CounterId o) |
| Constructor and Description |
|---|
CounterId.CounterIdRecord(CounterId id,
long timestamp) |
Copyright © 2015 The Apache Software Foundation