Class LocalityGroupUtil.PartitionedMutation

  • All Implemented Interfaces:
    org.apache.hadoop.io.Writable
    Enclosing class:
    LocalityGroupUtil

    public static class LocalityGroupUtil.PartitionedMutation
    extends Mutation
    • Constructor Detail

      • PartitionedMutation

        public PartitionedMutation​(byte[] row,
                                   List<ColumnUpdate> updates)
    • Method Detail

      • getRow

        public byte[] getRow()
        Description copied from class: Mutation
        Gets the row ID for this mutation. Not a defensive copy.
        Overrides:
        getRow in class Mutation
        Returns:
        row ID
      • getUpdates

        public List<ColumnUpdate> getUpdates()
        Description copied from class: Mutation
        Gets the modifications and deletions in this mutation. After calling this method, further modifications to this mutation are ignored. Changes made to the returned updates do not affect this mutation.
        Overrides:
        getUpdates in class Mutation
        Returns:
        list of modifications and deletions
      • toThrift

        public TMutation toThrift()
        Description copied from class: Mutation
        Creates a TMutation object containing this Mutation's data. Note that this method will move the Mutation into a "serialized" state that will prevent users from adding more data via Mutation#put().
        Overrides:
        toThrift in class Mutation
        Returns:
        a thrift form of this Mutation
      • equals

        public boolean equals​(Mutation m)
        Description copied from class: Mutation
        Checks if this mutation equals another. Two mutations are equal if they target the same row and have the same modifications and deletions, in order. This method may be removed in a future API revision in favor of Mutation.equals(Object). See ACCUMULO-1627 for more information.
        Overrides:
        equals in class Mutation
        Parameters:
        m - mutation to compare
        Returns:
        true if this mutation equals the other, false otherwise