|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.Operation
org.apache.hadoop.hbase.client.OperationWithAttributes
org.apache.hadoop.hbase.client.Mutation
org.apache.hadoop.hbase.client.Put
@InterfaceAudience.Public @InterfaceStability.Stable public class Put
Used to perform Put operations for a single row.
To perform a Put, instantiate a Put object with the row to insert to and
for each column to be inserted, execute add
or
add
if setting the timestamp.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.client.Mutation |
---|
durability, familyMap, MUTATION_OVERHEAD, row, ts |
Fields inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes |
---|
ID_ATRIBUTE |
Constructor Summary | |
---|---|
Put(byte[] row)
Create a Put operation for the specified row. |
|
Put(byte[] rowArray,
int rowOffset,
int rowLength)
We make a copy of the passed in row key to keep local. |
|
Put(byte[] rowArray,
int rowOffset,
int rowLength,
long ts)
We make a copy of the passed in row key to keep local. |
|
Put(byte[] row,
long ts)
Create a Put operation for the specified row, using a given timestamp. |
|
Put(ByteBuffer row)
|
|
Put(ByteBuffer row,
long ts)
|
|
Put(Put putToCopy)
Copy constructor. |
Method Summary | |
---|---|
Put |
add(byte[] family,
byte[] qualifier,
byte[] value)
Add the specified column and value to this Put operation. |
Put |
add(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
Add the specified column and value, with the specified timestamp as its version to this Put operation. |
Put |
add(byte[] family,
ByteBuffer qualifier,
long ts,
ByteBuffer value)
Add the specified column and value, with the specified timestamp as its version to this Put operation. |
Put |
add(Cell kv)
Add the specified KeyValue to this Put operation. |
Put |
addImmutable(byte[] family,
byte[] qualifier,
byte[] value)
See add(byte[], byte[], byte[]) . |
Put |
addImmutable(byte[] family,
byte[] qualifier,
byte[] value,
Tag[] tag)
This expects that the underlying arrays won't change. |
Put |
addImmutable(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
See add(byte[], byte[], long, byte[]) . |
Put |
addImmutable(byte[] family,
byte[] qualifier,
long ts,
byte[] value,
Tag[] tag)
This expects that the underlying arrays won't change. |
Put |
addImmutable(byte[] family,
ByteBuffer qualifier,
long ts,
ByteBuffer value)
See add(byte[], ByteBuffer, long, ByteBuffer) . |
Put |
addImmutable(byte[] family,
ByteBuffer qualifier,
long ts,
ByteBuffer value,
Tag[] tag)
This expects that the underlying arrays won't change. |
List<Cell> |
get(byte[] family,
byte[] qualifier)
Returns a list of all KeyValue objects with matching column family and qualifier. |
boolean |
has(byte[] family,
byte[] qualifier)
A convenience method to determine if this object's familyMap contains a value assigned to the given family & qualifier. |
boolean |
has(byte[] family,
byte[] qualifier,
byte[] value)
A convenience method to determine if this object's familyMap contains a value assigned to the given family, qualifier and timestamp. |
boolean |
has(byte[] family,
byte[] qualifier,
long ts)
A convenience method to determine if this object's familyMap contains a value assigned to the given family, qualifier and timestamp. |
boolean |
has(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
A convenience method to determine if this object's familyMap contains the given value assigned to the given family, qualifier and timestamp. |
Methods inherited from class org.apache.hadoop.hbase.client.Mutation |
---|
cellScanner, compareTo, extraHeapSize, getACL, getACLStrategy, getCellVisibility, getClusterIds, getDurability, getFamilyCellMap, getFamilyMap, getFingerprint, getRow, getTimeStamp, getTTL, getWriteToWAL, heapSize, isEmpty, numFamilies, setACL, setACL, setACLStrategy, setCellVisibility, setClusterIds, setDurability, setFamilyCellMap, setFamilyMap, setTTL, setWriteToWAL, size, toMap |
Methods inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes |
---|
getAttribute, getAttributeSize, getAttributesMap, getId, setAttribute, setId |
Methods inherited from class org.apache.hadoop.hbase.client.Operation |
---|
toJSON, toJSON, toMap, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hbase.io.HeapSize |
---|
heapSize |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public Put(byte[] row)
row
- row keypublic Put(byte[] row, long ts)
row
- row key; we make a copy of what we are passed to keep local.ts
- timestamppublic Put(byte[] rowArray, int rowOffset, int rowLength)
rowArray
- rowOffset
- rowLength
- public Put(ByteBuffer row, long ts)
row
- row key; we make a copy of what we are passed to keep local.ts
- timestamppublic Put(ByteBuffer row)
row
- row key; we make a copy of what we are passed to keep local.public Put(byte[] rowArray, int rowOffset, int rowLength, long ts)
rowArray
- rowOffset
- rowLength
- ts
- public Put(Put putToCopy)
putToCopy
- put to copyMethod Detail |
---|
public Put add(byte[] family, byte[] qualifier, byte[] value)
family
- family namequalifier
- column qualifiervalue
- column value
public Put addImmutable(byte[] family, byte[] qualifier, byte[] value)
add(byte[], byte[], byte[])
. This version expects
that the underlying arrays won't change. It's intended
for usage internal HBase to and for advanced client applications.
public Put addImmutable(byte[] family, byte[] qualifier, byte[] value, Tag[] tag)
public Put add(byte[] family, byte[] qualifier, long ts, byte[] value)
family
- family namequalifier
- column qualifierts
- version timestampvalue
- column value
public Put addImmutable(byte[] family, byte[] qualifier, long ts, byte[] value)
add(byte[], byte[], long, byte[])
. This version expects
that the underlying arrays won't change. It's intended
for usage internal HBase to and for advanced client applications.
public Put addImmutable(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag)
public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value, Tag[] tag)
public Put add(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value)
family
- family namequalifier
- column qualifierts
- version timestampvalue
- column value
public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value)
add(byte[], ByteBuffer, long, ByteBuffer)
. This version expects
that the underlying arrays won't change. It's intended
for usage internal HBase to and for advanced client applications.
public Put add(Cell kv) throws IOException
kv
- individual KeyValue
IOException
- epublic boolean has(byte[] family, byte[] qualifier)
family
- column familyqualifier
- column qualifier
public boolean has(byte[] family, byte[] qualifier, long ts)
family
- column familyqualifier
- column qualifierts
- timestamp
public boolean has(byte[] family, byte[] qualifier, byte[] value)
family
- column familyqualifier
- column qualifiervalue
- value to check
public boolean has(byte[] family, byte[] qualifier, long ts, byte[] value)
family
- column familyqualifier
- column qualifierts
- timestampvalue
- value to check
public List<Cell> get(byte[] family, byte[] qualifier)
family
- column familyqualifier
- column qualifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |