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 long
MAX_MUTATION_SIZE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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)
java.util.function.Supplier<Mutation>
hintOnFailure()
DecoratedKey
key()
java.lang.String
toString(boolean shallow)
default void
validateIndexedColumns(ClientState state)
void
validateSize(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(ClientState state)
-
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_version
overhead
- overhadd to add for mutation size to validate. Pass zero if not required but not a negative value.- Throws:
MutationExceededMaxSizeException
- ifDatabaseDescriptor.getMaxMutationSize()
is exceeded
-
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
-
-