Package org.apache.hadoop.hbase.client
Class RowMutations
java.lang.Object
org.apache.hadoop.hbase.client.RowMutations
- All Implemented Interfaces:
Row
Performs multiple mutations atomically on a single row. The mutations are performed in the order
in which they were added.
We compare and equate mutations based off their row so be careful putting RowMutations into Sets or using them as keys in Maps.
-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.client.Row
COMPARATOR
-
Constructor Summary
ConstructorDescriptionRowMutations
(byte[] row) RowMutations
(byte[] row, int initialCapacity) Create an atomic mutation for the specified row. -
Method Summary
Modifier and TypeMethodDescriptionAdd a list of mutationsAdd a mutationint
Returns An unmodifiable list of the current mutations.byte[]
getRow()
Returns The row.static RowMutations
Create aRowMutations
with the specified mutations.
-
Field Details
-
mutations
-
row
-
-
Constructor Details
-
RowMutations
-
RowMutations
Create an atomic mutation for the specified row.- Parameters:
row
- row keyinitialCapacity
- the initial capacity of the RowMutations
-
-
Method Details
-
of
Create aRowMutations
with the specified mutations.- Parameters:
mutations
- the mutations to send- Throws:
IOException
- if any row in mutations is different to another
-
add
Add a mutation- Parameters:
mutation
- The data to send.- Throws:
IOException
- if the row of added mutation doesn't match the original row
-
add
Add a list of mutations- Parameters:
mutations
- The data to send.- Throws:
IOException
- if the row of added mutation doesn't match the original row
-
getRow
Description copied from interface:Row
Returns The row. -
getMutations
Returns An unmodifiable list of the current mutations. -
getMaxPriority
-