|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.client.RowMutations
@InterfaceAudience.Public @InterfaceStability.Evolving public class RowMutations
Performs multiple mutations atomically on a single row.
Currently Put and Delete are supported.
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.
| Constructor Summary | |
|---|---|
RowMutations()
Constructor for Writable. |
|
RowMutations(byte[] row)
Create an atomic mutation for the specified row. |
|
| Method Summary | |
|---|---|
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(Object obj)
|
List<Mutation> |
getMutations()
|
byte[] |
getRow()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowMutations()
public RowMutations(byte[] row)
row - row key| Method Detail |
|---|
public void add(Put p)
throws IOException
Put operation to the list of mutations
p - The Put to add
IOException
public void add(Delete d)
throws IOException
Delete operation to the list of mutations
d - The Delete to add
IOExceptionpublic int compareTo(Row i)
compareTo in interface Comparable<Row>public boolean equals(Object obj)
equals in class Objectpublic byte[] getRow()
getRow in interface Rowpublic List<Mutation> getMutations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||