public class Put extends Mutation implements HeapSize, org.apache.hadoop.io.Writable, Comparable<Row>
familyMap, lockId, row, ts, writeToWAL
ID_ATRIBUTE
Constructor and Description |
---|
Put()
Constructor for Writable.
|
Put(byte[] row)
Create a Put operation for the specified row.
|
Put(byte[] row,
long ts)
Create a Put operation for the specified row, using a given timestamp.
|
Put(byte[] row,
long ts,
RowLock rowLock)
Deprecated.
RowLock and associated operations are deprecated,
use Put(byte[], long) |
Put(byte[] row,
RowLock rowLock)
Deprecated.
RowLock and associated operations are deprecated, use Put(byte[]) |
Put(Put putToCopy)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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(KeyValue kv)
Add the specified KeyValue to this Put operation.
|
List<KeyValue> |
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.
|
long |
heapSize() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
compareTo, getClusterId, getClusterIds, getDurability, getFamilyMap, getFingerprint, getLockId, getRow, getRowLock, getTimeStamp, getWriteToWAL, isEmpty, numFamilies, setClusterId, setClusterIds, setDurability, setFamilyMap, setWriteToWAL, size, toMap
getAttribute, getAttributeSize, getAttributesMap, getId, readAttributes, setAttribute, setId, writeAttributes
toJSON, toJSON, toMap, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public Put()
public Put(byte[] row)
row
- row keypublic Put(byte[] row, RowLock rowLock)
row
- row keyrowLock
- previously acquired row lock, or nullpublic Put(byte[] row, long ts)
row
- row keyts
- timestamppublic Put(byte[] row, long ts, RowLock rowLock)
row
- row keyts
- timestamprowLock
- previously acquired row lock, or nullpublic Put(Put putToCopy)
putToCopy
- put to copypublic Put add(byte[] family, byte[] qualifier, byte[] value)
family
- family namequalifier
- column qualifiervalue
- column valuepublic Put add(byte[] family, byte[] qualifier, long ts, byte[] value)
family
- family namequalifier
- column qualifierts
- version timestampvalue
- column valuepublic Put add(KeyValue kv) throws IOException
kv
- individual KeyValueIOException
- epublic boolean has(byte[] family, byte[] qualifier)
family
- column familyqualifier
- column qualifierpublic boolean has(byte[] family, byte[] qualifier, long ts)
family
- column familyqualifier
- column qualifierts
- timestamppublic boolean has(byte[] family, byte[] qualifier, byte[] value)
family
- column familyqualifier
- column qualifiervalue
- value to checkpublic boolean has(byte[] family, byte[] qualifier, long ts, byte[] value)
family
- column familyqualifier
- column qualifierts
- timestampvalue
- value to checkpublic List<KeyValue> get(byte[] family, byte[] qualifier)
family
- column familyqualifier
- column qualifierpublic long heapSize()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.