@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) |
RowMutations |
add(Mutation mutation) |
int |
getMaxPriority() |
List<Mutation> |
getMutations() |
byte[] |
getRow() |
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 List<Mutation> getMutations()
public int getMaxPriority()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.