| 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, waitdataSize, validateIndexedColumnspublic static final CounterMutation.CounterMutationSerializer serializer
public CounterMutation(Mutation mutation, ConsistencyLevel consistency)
public java.lang.String getKeyspaceName()
getKeyspaceName in interface IMutationpublic java.util.Collection<TableId> getTableIds()
getTableIds in interface IMutationpublic java.util.Collection<PartitionUpdate> getPartitionUpdates()
getPartitionUpdates in interface IMutationpublic void validateSize(int version,
int overhead)
IMutationDatabaseDescriptor.getMaxMutationSize().validateSize in interface IMutationversion - the MessagingService version the mutation is being serialized for.
see MessagingService.current_versionoverhead - 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
WriteTimeoutExceptionpublic long getTimeout(java.util.concurrent.TimeUnit unit)
getTimeout in interface IMutationpublic int serializedSize(int version)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2022 The Apache Software Foundation