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.create(CounterId id,
long clock,
long value,
boolean isDelta) |
boolean |
CounterContext.hasCounterId(java.nio.ByteBuffer context,
CounterId id)
Checks whether the provided context has a count for the provided
CounterId.
|
void |
CounterContext.ContextState.writeElement(CounterId id,
long clock,
long count) |
void |
CounterContext.ContextState.writeElement(CounterId id,
long clock,
long count,
boolean isDelta) |
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 © 2013 The Apache Software Foundation