Modifier and Type | Class and Description |
---|---|
static class |
CounterMutation.CounterMutationSerializer |
Modifier and Type | Field and Description |
---|---|
static CounterMutation.CounterMutationSerializer |
serializer |
MAX_MUTATION_SIZE
Constructor and Description |
---|
CounterMutation(Mutation mutation,
ConsistencyLevel consistency) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
Mutation |
applyCounterMutation()
Applies the counter mutation, returns the result Mutation (for replication to other nodes).
|
ConsistencyLevel |
consistency() |
java.lang.String |
getKeyspaceName() |
Mutation |
getMutation() |
java.util.Collection<PartitionUpdate> |
getPartitionUpdates() |
java.util.Collection<TableId> |
getTableIds() |
long |
getTimeout(java.util.concurrent.TimeUnit unit) |
DecoratedKey |
key() |
int |
serializedSize(int version) |
java.lang.String |
toString() |
java.lang.String |
toString(boolean shallow) |
void |
validateSize(int version,
int overhead)
Validates size of mutation does not exceed
DatabaseDescriptor.getMaxMutationSize() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dataSize, validateIndexedColumns
public static final CounterMutation.CounterMutationSerializer serializer
public CounterMutation(Mutation mutation, ConsistencyLevel consistency)
public java.lang.String getKeyspaceName()
getKeyspaceName
in interface IMutation
public java.util.Collection<TableId> getTableIds()
getTableIds
in interface IMutation
public java.util.Collection<PartitionUpdate> getPartitionUpdates()
getPartitionUpdates
in interface IMutation
public void validateSize(int version, int overhead)
IMutation
DatabaseDescriptor.getMaxMutationSize()
.validateSize
in interface IMutation
version
- the MessagingService version the mutation is being serialized for.
see MessagingService.current_version
overhead
- overhadd to add for mutation size to validate. Pass zero if not required but not a negative value.public Mutation getMutation()
public DecoratedKey key()
public ConsistencyLevel consistency()
public Mutation applyCounterMutation() throws WriteTimeoutException
WriteTimeoutException
public long getTimeout(java.util.concurrent.TimeUnit unit)
getTimeout
in interface IMutation
public int serializedSize(int version)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation