public interface IMutation
Modifier and Type | Field and Description |
---|---|
static long |
MAX_MUTATION_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
static long |
dataSize(java.util.Collection<? extends IMutation> mutations)
Computes the total data size of the specified mutations.
|
java.lang.String |
getKeyspaceName() |
java.util.Collection<PartitionUpdate> |
getPartitionUpdates() |
java.util.Collection<TableId> |
getTableIds() |
long |
getTimeout(java.util.concurrent.TimeUnit unit) |
DecoratedKey |
key() |
java.lang.String |
toString(boolean shallow) |
default void |
validateIndexedColumns() |
void |
validateSize(int version,
int overhead)
Validates size of mutation does not exceed
DatabaseDescriptor.getMaxMutationSize() . |
void apply()
java.lang.String getKeyspaceName()
java.util.Collection<TableId> getTableIds()
DecoratedKey key()
long getTimeout(java.util.concurrent.TimeUnit unit)
java.lang.String toString(boolean shallow)
java.util.Collection<PartitionUpdate> getPartitionUpdates()
default void validateIndexedColumns()
void validateSize(int version, int overhead)
DatabaseDescriptor.getMaxMutationSize()
.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.{@link
- MutationExceededMaxSizeException} if DatabaseDescriptor.getMaxMutationSize()
is exceededstatic long dataSize(java.util.Collection<? extends IMutation> mutations)
mutations
- the mutationsCopyright © 2009- The Apache Software Foundation