|
||||||||||
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()
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowMutations()
public RowMutations(byte[] row)
row
- row keyMethod 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
IOException
public int compareTo(Row i)
compareTo
in interface Comparable<Row>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public byte[] getRow()
getRow
in interface Row
public List<Mutation> getMutations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |