@InterfaceAudience.Public @InterfaceStability.Stable public class Put extends Mutation implements HeapSize, java.lang.Comparable<Row>
durability, familyMap, MUTATION_OVERHEAD, RETURN_RESULTS, row, tsID_ATRIBUTE| Constructor and Description |
|---|
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(java.nio.ByteBuffer row) |
Put(java.nio.ByteBuffer row,
long ts) |
Put(Put putToCopy)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Put |
add(byte[] family,
byte[] qualifier,
byte[] value)
Deprecated.
Since 1.0.0. Use
addColumn(byte[], byte[], byte[]) |
Put |
add(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
Deprecated.
Since 1.0.0. Use
addColumn(byte[], byte[], long, byte[]) |
Put |
add(byte[] family,
java.nio.ByteBuffer qualifier,
long ts,
java.nio.ByteBuffer value)
Deprecated.
Since 1.0.0. Use
addColumn(byte[], ByteBuffer, long, ByteBuffer) |
Put |
add(Cell kv)
Add the specified KeyValue to this Put operation.
|
Put |
addColumn(byte[] family,
byte[] qualifier,
byte[] value)
Add the specified column and value to this Put operation.
|
Put |
addColumn(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 |
addColumn(byte[] family,
java.nio.ByteBuffer qualifier,
long ts,
java.nio.ByteBuffer value)
Add the specified column and value, with the specified timestamp as
its version to this Put operation.
|
Put |
addImmutable(byte[] family,
byte[] qualifier,
byte[] value)
|
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)
|
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,
java.nio.ByteBuffer qualifier,
long ts,
java.nio.ByteBuffer value)
|
Put |
addImmutable(byte[] family,
java.nio.ByteBuffer qualifier,
long ts,
java.nio.ByteBuffer value,
Tag[] tag)
This expects that the underlying arrays won't change.
|
java.util.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.
|
Put |
setACL(java.util.Map<java.lang.String,Permission> perms) |
Put |
setACL(java.lang.String user,
Permission perms) |
Put |
setAttribute(java.lang.String name,
byte[] value)
Sets an attribute.
|
Put |
setCellVisibility(CellVisibility expression)
Sets the visibility expression associated with cells in this Mutation.
|
Put |
setClusterIds(java.util.List<java.util.UUID> clusterIds)
Marks that the clusters with the given clusterIds have consumed the mutation
|
Put |
setDurability(Durability d)
Set the durability for this mutation
|
Put |
setFamilyCellMap(java.util.NavigableMap<byte[],java.util.List<Cell>> map)
Method for setting the put's familyMap
|
Put |
setFamilyMap(java.util.NavigableMap<byte[],java.util.List<KeyValue>> map)
Deprecated.
|
Put |
setId(java.lang.String id)
This method allows you to set an identifier on an operation.
|
Put |
setTTL(long ttl)
Set the TTL desired for the result of the mutation, in milliseconds.
|
Put |
setWriteToWAL(boolean write)
Deprecated.
|
cellScanner, compareTo, extraHeapSize, getACL, getCellVisibility, getClusterIds, getDurability, getFamilyCellMap, getFamilyMap, getFingerprint, getRow, getTimeStamp, getTTL, getWriteToWAL, heapSize, isEmpty, numFamilies, size, toMapgetAttribute, getAttributeSize, getAttributesMap, getIdtoJSON, toJSON, toMap, toString, toStringpublic 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(java.nio.ByteBuffer row,
long ts)
row - row key; we make a copy of what we are passed to keep local.ts - timestamppublic Put(java.nio.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 copy@Deprecated public Put add(byte[] family, byte[] qualifier, byte[] value)
addColumn(byte[], byte[], byte[])family - family namequalifier - column qualifiervalue - column valuepublic Put addColumn(byte[] family, byte[] qualifier, byte[] value)
family - family namequalifier - column qualifiervalue - column valuepublic 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)
@Deprecated public Put add(byte[] family, byte[] qualifier, long ts, byte[] value)
addColumn(byte[], byte[], long, byte[])family - family namequalifier - column qualifierts - version timestampvalue - column valuepublic Put addColumn(byte[] family, byte[] qualifier, long ts, byte[] value)
family - family namequalifier - column qualifierts - version timestampvalue - column valuepublic 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, java.nio.ByteBuffer qualifier, long ts, java.nio.ByteBuffer value, Tag[] tag)
@Deprecated public Put add(byte[] family, java.nio.ByteBuffer qualifier, long ts, java.nio.ByteBuffer value)
addColumn(byte[], ByteBuffer, long, ByteBuffer)family - family namequalifier - column qualifierts - version timestampvalue - column valuepublic Put addColumn(byte[] family, java.nio.ByteBuffer qualifier, long ts, java.nio.ByteBuffer value)
family - family namequalifier - column qualifierts - version timestampvalue - column valuepublic Put addImmutable(byte[] family, java.nio.ByteBuffer qualifier, long ts, java.nio.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 java.io.IOException
kv - individual KeyValuejava.io.IOException - 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 java.util.List<Cell> get(byte[] family, byte[] qualifier)
family - column familyqualifier - column qualifierpublic Put setAttribute(java.lang.String name, byte[] value)
AttributessetAttribute in interface AttributessetAttribute in class OperationWithAttributesname - attribute namevalue - attribute valuepublic Put setId(java.lang.String id)
OperationWithAttributessetId in class OperationWithAttributesid - id to set for the scan@Deprecated public Put setWriteToWAL(boolean write)
MutationMutation.setDurability(Durability)setWriteToWAL in class Mutationwrite - true if edits should be written to WAL, false if notpublic Put setDurability(Durability d)
MutationsetDurability in class Mutationpublic Put setFamilyCellMap(java.util.NavigableMap<byte[],java.util.List<Cell>> map)
MutationsetFamilyCellMap in class Mutation@Deprecated public Put setFamilyMap(java.util.NavigableMap<byte[],java.util.List<KeyValue>> map)
MutationsetFamilyMap in class Mutationpublic Put setClusterIds(java.util.List<java.util.UUID> clusterIds)
MutationsetClusterIds in class MutationclusterIds - of the clusters that have consumed the mutationpublic Put setCellVisibility(CellVisibility expression)
MutationCellVisibility on Delete mutation.setCellVisibility in class Mutationpublic Put setACL(java.lang.String user, Permission perms)
public Put setACL(java.util.Map<java.lang.String,Permission> perms)