|
||||||||||
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,
org.apache.hadoop.io.Text column)
Delete the value for a column Deletes the cell whose row/column/commit-timestamp match those of the delete. |
long |
getLockid()
|
org.apache.hadoop.io.Text |
getRow()
|
Iterator<BatchOperation> |
iterator()
|
void |
put(long lid,
org.apache.hadoop.io.Text column,
byte[] val)
Change a value for the specified column |
void |
readFields(DataInput in)
|
long |
startUpdate(org.apache.hadoop.io.Text row)
Start a batch row insertion/update. |
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 BatchUpdate()
public BatchUpdate(long lockid)
lockid
- Method Detail |
---|
public long getLockid()
public org.apache.hadoop.io.Text getRow()
public long startUpdate(org.apache.hadoop.io.Text row)
row
- Name of row to start update against.
public void put(long lid, org.apache.hadoop.io.Text column, byte[] val)
lid
- lock id returned from startUpdatecolumn
- column whose value is being setval
- new value for column. Cannot be null (can be empty).public void delete(long lid, org.apache.hadoop.io.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
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |