|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.BatchUpdate
public class BatchUpdate
A Writable object that contains a series of BatchOperations There is one BatchUpdate object per server, so a series of batch operations can result in multiple BatchUpdate objects if the batch contains rows that are served by multiple region servers.
Constructor Summary | |
---|---|
BatchUpdate()
Default constructor - used by Writable. |
|
BatchUpdate(long lockid)
Client side constructor. |
Method Summary | |
---|---|
void |
delete(long lid,
Text column)
Delete the value for a column Deletes the cell whose row/column/commit-timestamp match those of the delete. |
long |
getLockid()
|
Text |
getRow()
|
Iterator<BatchOperation> |
iterator()
|
void |
put(long lid,
Text column,
byte[] val)
Change a value for the specified column |
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
long |
startUpdate(Text row)
Start a batch row insertion/update. |
void |
write(DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchUpdate()
public BatchUpdate(long lockid)
lockid
- Method Detail |
---|
public long getLockid()
public Text getRow()
public long startUpdate(Text row)
row
- Name of row to start update against.
public void put(long lid, Text column, byte[] val)
lid
- lock id returned from startUpdatecolumn
- column whose value is being setval
- new value for columnpublic void delete(long lid, Text column)
lid
- lock id returned from startUpdatecolumn
- name of column whose value is to be deletedpublic Iterator<BatchOperation> iterator()
iterator
in interface Iterable<BatchOperation>
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public void write(DataOutput out) throws IOException
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |