Package org.apache.cassandra.db
Interface IMutation
-
- All Known Implementing Classes:
CounterMutation,Mutation,VirtualMutation
public interface IMutation
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_MUTATION_SIZE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidapply()static longdataSize(java.util.Collection<? extends IMutation> mutations)Computes the total data size of the specified mutations.java.lang.StringgetKeyspaceName()java.util.Collection<PartitionUpdate>getPartitionUpdates()java.util.Collection<TableId>getTableIds()longgetTimeout(java.util.concurrent.TimeUnit unit)java.util.function.Supplier<Mutation>hintOnFailure()DecoratedKeykey()java.lang.StringtoString(boolean shallow)default voidvalidateIndexedColumns()voidvalidateSize(int version, int overhead)Validates size of mutation does not exceedDatabaseDescriptor.getMaxMutationSize().
-
-
-
Method Detail
-
apply
void apply()
-
getKeyspaceName
java.lang.String getKeyspaceName()
-
getTableIds
java.util.Collection<TableId> getTableIds()
-
key
DecoratedKey key()
-
getTimeout
long getTimeout(java.util.concurrent.TimeUnit unit)
-
toString
java.lang.String toString(boolean shallow)
-
getPartitionUpdates
java.util.Collection<PartitionUpdate> getPartitionUpdates()
-
hintOnFailure
java.util.function.Supplier<Mutation> hintOnFailure()
-
validateIndexedColumns
default void validateIndexedColumns()
-
validateSize
void validateSize(int version, int overhead)Validates size of mutation does not exceedDatabaseDescriptor.getMaxMutationSize().- Parameters:
version- the MessagingService version the mutation is being serialized for. seeMessagingService.current_versionoverhead- overhadd to add for mutation size to validate. Pass zero if not required but not a negative value.
-
dataSize
static long dataSize(java.util.Collection<? extends IMutation> mutations)
Computes the total data size of the specified mutations.- Parameters:
mutations- the mutations- Returns:
- the total data size of the specified mutations
-
-