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 IMutationpublic java.util.Collection<TableId> getTableIds()
getTableIds in interface IMutationpublic DecoratedKey key()
public long getTimeout(java.util.concurrent.TimeUnit unit)
getTimeout in interface IMutationpublic java.lang.String toString(boolean shallow)
public java.util.Collection<PartitionUpdate> getPartitionUpdates()
getPartitionUpdates in interface IMutationpublic void validateIndexedColumns()
validateIndexedColumns 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.Copyright © 2009-2020 The Apache Software Foundation