|
||||||||||
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 operations such as put, delete, and deleteAll.
Nested Class Summary | |
---|---|
static class |
BatchOperation.Operation
Operation types. |
Constructor Summary | |
---|---|
BatchOperation()
default constructor used by Writable |
|
BatchOperation(BatchOperation.Operation operation,
Text column,
byte[] value)
Creates a put operation |
|
BatchOperation(Text column)
Creates a DELETE operation |
|
BatchOperation(Text column,
byte[] value)
Creates a PUT operation |
Method Summary | |
---|---|
Text |
getColumn()
|
BatchOperation.Operation |
getOp()
|
byte[] |
getValue()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
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 BatchOperation()
public BatchOperation(Text column)
column
- column namepublic BatchOperation(Text column, byte[] value)
column
- column namevalue
- column valuepublic BatchOperation(BatchOperation.Operation operation, Text column, byte[] value)
column
- column namevalue
- column valueMethod Detail |
---|
public Text getColumn()
public BatchOperation.Operation getOp()
public byte[] getValue()
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 |