|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.RowMutations
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.
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)
|
List<Mutation> |
getMutations()
|
byte[] |
getRow()
|
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, 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 void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(Row i)
compareTo
in interface Comparable<Row>
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 |