@InterfaceAudience.Public @InterfaceStability.Evolving public class RowMutations extends java.lang.Object implements Row
| Constructor and Description |
|---|
RowMutations()
Constructor for Writable.
|
RowMutations(byte[] row)
Create an atomic mutation for the specified row.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Delete d)
Add a
Delete operation to the list of mutations |
void |
add(Put p)
Add a
Put operation to the list of mutations |
int |
compareTo(Row i) |
boolean |
equals(java.lang.Object obj) |
java.util.List<Mutation> |
getMutations() |
byte[] |
getRow() |
int |
hashCode() |
public RowMutations()
public RowMutations(byte[] row)
row - row keypublic void add(Put p) throws java.io.IOException
Put operation to the list of mutationsp - The Put to addjava.io.IOExceptionpublic void add(Delete d) throws java.io.IOException
Delete operation to the list of mutationsd - The Delete to addjava.io.IOExceptionpublic int compareTo(Row i)
compareTo in interface java.lang.Comparable<Row>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<Mutation> getMutations()