|
||||||||||
| 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 |
|
BatchOperation(byte[] column)
Creates a DELETE batch operation. |
|
BatchOperation(byte[] column,
byte[] value)
Create a batch operation. |
|
BatchOperation(String column)
Creates a DELETE batch operation. |
|
BatchOperation(String column,
String value)
Create a batch operation. |
|
| Method Summary | |
|---|---|
byte[] |
getColumn()
|
byte[] |
getValue()
|
boolean |
isPut()
|
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BatchOperation()
public BatchOperation(byte[] column)
column - column namepublic BatchOperation(String column)
column - column name
public BatchOperation(String column,
String value)
column - column namevalue - column value. If non-null, this is a PUT operation.
public BatchOperation(byte[] column,
byte[] value)
column - column namevalue - column value. If non-null, this is a PUT operation.| Method Detail |
|---|
public byte[] getColumn()
public byte[] getValue()
public boolean isPut()
public String toString()
toString in class Object
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||