@InterfaceAudience.Public public class RowMutations extends Object implements Row
We compare and equate mutations based off their row so be careful putting RowMutations into Sets or using them as keys in Maps.
COMPARATOR
Constructor and Description |
---|
RowMutations(byte[] row) |
RowMutations(byte[] row,
int initialCapacity)
Create an atomic mutation for the specified row.
|
Modifier and Type | Method and Description |
---|---|
RowMutations |
add(List<? extends Mutation> mutations)
Add a list of mutations
|
RowMutations |
add(Mutation mutation)
Add a mutation
|
int |
getMaxPriority() |
List<Mutation> |
getMutations()
Returns An unmodifiable list of the current mutations.
|
byte[] |
getRow()
Returns The row.
|
static RowMutations |
of(List<? extends Mutation> mutations)
Create a
RowMutations with the specified mutations. |
public RowMutations(byte[] row)
public RowMutations(byte[] row, int initialCapacity)
row
- row keyinitialCapacity
- the initial capacity of the RowMutationspublic static RowMutations of(List<? extends Mutation> mutations) throws IOException
RowMutations
with the specified mutations.mutations
- the mutations to sendIOException
- if any row in mutations is different to anotherpublic RowMutations add(Mutation mutation) throws IOException
mutation
- The data to send.IOException
- if the row of added mutation doesn't match the original rowpublic RowMutations add(List<? extends Mutation> mutations) throws IOException
mutations
- The data to send.IOException
- if the row of added mutation doesn't match the original rowpublic byte[] getRow()
Row
public List<Mutation> getMutations()
public int getMaxPriority()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.