public final class VirtualMutation extends java.lang.Object implements IMutation
apply()
to go straight to VirtualTable.apply(PartitionUpdate)
for every table involved.MAX_MUTATION_SIZE
Constructor and Description |
---|
VirtualMutation(PartitionUpdate update) |
VirtualMutation(java.lang.String keyspaceName,
DecoratedKey partitionKey,
com.google.common.collect.ImmutableMap<TableId,PartitionUpdate> modifications) |
Modifier and Type | Method and Description |
---|---|
void |
apply() |
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) |
void |
validateIndexedColumns() |
void |
validateSize(int version,
int overhead)
Validates size of mutation does not exceed
DatabaseDescriptor.getMaxMutationSize() . |
public VirtualMutation(PartitionUpdate update)
public VirtualMutation(java.lang.String keyspaceName, DecoratedKey partitionKey, com.google.common.collect.ImmutableMap<TableId,PartitionUpdate> modifications)
public java.lang.String getKeyspaceName()
getKeyspaceName
in interface IMutation
public java.util.Collection<TableId> getTableIds()
getTableIds
in interface IMutation
public DecoratedKey key()
public long getTimeout(java.util.concurrent.TimeUnit unit)
getTimeout
in interface IMutation
public java.lang.String toString(boolean shallow)
public java.util.Collection<PartitionUpdate> getPartitionUpdates()
getPartitionUpdates
in interface IMutation
public void validateIndexedColumns()
validateIndexedColumns
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.Copyright © 2009- The Apache Software Foundation