Interface IMutation

    • Field Detail

      • MAX_MUTATION_SIZE

        static final long MAX_MUTATION_SIZE
    • Method Detail

      • apply

        void apply()
      • getKeyspaceName

        java.lang.String getKeyspaceName()
      • getTableIds

        java.util.Collection<TableId> getTableIds()
      • getTimeout

        long getTimeout​(java.util.concurrent.TimeUnit unit)
      • toString

        java.lang.String toString​(boolean shallow)
      • getPartitionUpdates

        java.util.Collection<PartitionUpdate> getPartitionUpdates()
      • validateIndexedColumns

        default void validateIndexedColumns()
      • validateSize

        void validateSize​(int version,
                          int overhead)
        Validates size of mutation does not exceed DatabaseDescriptor.getMaxMutationSize().
        Parameters:
        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.
      • 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