|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.BatchOperation
public class BatchOperation
Batch update operation. If value is null, its a DELETE operation. If its non-null, its a PUT. This object is purposely bare-bones because many instances are created during bulk uploads. We have one class for DELETEs and PUTs rather than a class per type because it makes the serialization easier.
BatchUpdate
Constructor Summary | |
---|---|
BatchOperation()
Default constructor used by Writable |
|
BatchOperation(org.apache.hadoop.io.Text column)
Creates a DELETE batch operation. |
|
BatchOperation(org.apache.hadoop.io.Text column,
byte[] value)
Create a batch operation. |
Method Summary | |
---|---|
org.apache.hadoop.io.Text |
getColumn()
|
byte[] |
getValue()
|
boolean |
isPut()
|
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 BatchOperation()
public BatchOperation(org.apache.hadoop.io.Text column)
column
- column namepublic BatchOperation(org.apache.hadoop.io.Text column, byte[] value)
column
- column namevalue
- column value. If non-null, this is a PUT operation.Method Detail |
---|
public org.apache.hadoop.io.Text getColumn()
public byte[] getValue()
public boolean isPut()
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 |