|
||||||||||
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
Field Summary | |
---|---|
static int |
DELETE_OP
delete operation |
static int |
PUT_OP
put operation |
Constructor Summary | |
---|---|
BatchOperation()
default constructor used by Writable |
|
BatchOperation(Text column)
Creates a delete operation |
|
BatchOperation(Text column,
byte[] value)
Creates a put operation |
Method Summary | |
---|---|
Text |
getColumn()
|
int |
getOp()
|
byte[] |
getValue()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
write(DataOutput out)
Writes 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 |
Field Detail |
---|
public static final int PUT_OP
public static final int DELETE_OP
Constructor Detail |
---|
public BatchOperation()
public BatchOperation(Text column, byte[] value)
column
- column namevalue
- column valuepublic BatchOperation(Text column)
column
- name of column to deleteMethod Detail |
---|
public Text getColumn()
public int 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
IOException
public void write(DataOutput out) throws IOException
out
.
write
in interface Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |