|
||||||||||
| 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| Field Summary | |
|---|---|
int |
ESTIMATED_HEAP_TAX
Deprecated. Estimated size of this object. |
| Constructor Summary | |
|---|---|
BatchOperation()
Deprecated. Default constructor |
|
BatchOperation(byte[] column)
Deprecated. Creates a DELETE batch operation. |
|
BatchOperation(byte[] column,
byte[] value)
Deprecated. Create a batch operation. |
|
BatchOperation(String column)
Deprecated. Creates a DELETE batch operation. |
|
BatchOperation(String column,
String value)
Deprecated. Create a batch operation. |
|
| Method Summary | |
|---|---|
byte[] |
getColumn()
Deprecated. |
byte[] |
getValue()
Deprecated. |
long |
heapSize()
Deprecated. |
boolean |
isPut()
Deprecated. |
void |
readFields(DataInput in)
Deprecated. |
String |
toString()
Deprecated. |
void |
write(DataOutput out)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int ESTIMATED_HEAP_TAX
| 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 ObjectObject.toString()
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.WritableIOExceptionpublic long heapSize()
heapSize in interface HeapSize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||