Package org.apache.accumulo.core.util
Class LocalityGroupUtil.PartitionedMutation
- java.lang.Object
-
- org.apache.accumulo.core.data.Mutation
-
- org.apache.accumulo.core.util.LocalityGroupUtil.PartitionedMutation
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
- Enclosing class:
- LocalityGroupUtil
public static class LocalityGroupUtil.PartitionedMutation extends Mutation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.data.Mutation
Mutation.SERIALIZED_FORMAT
-
-
Constructor Summary
Constructors Constructor Description PartitionedMutation(byte[] row, List<ColumnUpdate> updates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
equals(Mutation m)
Checks if this mutation equals another.byte[]
getRow()
Gets the row ID for this mutation.List<ColumnUpdate>
getUpdates()
Gets the modifications and deletions in this mutation.int
hashCode()
TMutation
toThrift()
Creates aTMutation
object containing this Mutation's data.-
Methods inherited from class org.apache.accumulo.core.data.Mutation
addReplicationSource, droppingOldTimestamp, estimatedMemoryUsed, getReplicationSources, getSerializedFormat, newColumnUpdate, numBytes, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, readFields, setReplicationSources, size, write
-
-
-
-
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.
-
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 classMutation
- Returns:
- list of modifications and deletions
-
toThrift
public TMutation toThrift()
Description copied from class:Mutation
Creates aTMutation
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().
-
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 ofMutation.equals(Object)
. See ACCUMULO-1627 for more information.
-
-