@InterfaceAudience.Public @InterfaceStability.Stable public class Append extends Mutation
This operation ensures atomicty to readers. Appends are done under a single row lock, so write operations to a row are synchronized, and readers are guaranteed to see this operation fully completed.
To append to a set of columns of a row, instantiate an Append object with the
row to append to. At least one column to append must be specified using the
add(byte[], byte[], byte[]) method.
durability, familyMap, MUTATION_OVERHEAD, RETURN_RESULTS, row, tsID_ATRIBUTE| Constructor and Description |
|---|
Append(Append a)
Copy constructor
|
Append(byte[] row)
Create a Append operation for the specified row.
|
Append(byte[] rowArray,
int rowOffset,
int rowLength)
Create a Append operation for the specified row.
|
| Modifier and Type | Method and Description |
|---|---|
Append |
add(byte[] family,
byte[] qualifier,
byte[] value)
Add the specified column and value to this Append operation.
|
Append |
add(Cell cell)
Add column and value to this Append operation.
|
boolean |
isReturnResults() |
Append |
setACL(Map<String,Permission> perms) |
Append |
setACL(String user,
Permission perms) |
Append |
setAttribute(String name,
byte[] value)
Sets an attribute.
|
Append |
setCellVisibility(CellVisibility expression)
Sets the visibility expression associated with cells in this Mutation.
|
Append |
setClusterIds(List<UUID> clusterIds)
Marks that the clusters with the given clusterIds have consumed the mutation
|
Append |
setDurability(Durability d)
Set the durability for this mutation
|
Append |
setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
Method for setting the put's familyMap
|
Append |
setFamilyMap(NavigableMap<byte[],List<KeyValue>> map)
Deprecated.
|
Append |
setId(String id)
This method allows you to set an identifier on an operation.
|
Append |
setPriority(int priority) |
Append |
setReturnResults(boolean returnResults) |
Append |
setTTL(long ttl)
Set the TTL desired for the result of the mutation, in milliseconds.
|
Append |
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, getId, getPrioritypublic Append(byte[] row)
At least one column must be appended to.
row - row key; makes a local copy of passed in array.public Append(Append a)
a - public Append(byte[] rowArray,
int rowOffset,
int rowLength)
At least one column must be appended to.
rowArray - Makes a copy out of this buffer.rowOffset - rowLength - public Append setReturnResults(boolean returnResults)
setReturnResults in class MutationreturnResults - True (default) if the append operation should return the results.
A client that is not interested in the result can save network
bandwidth setting this to false.public boolean isReturnResults()
isReturnResults in class Mutationpublic Append add(byte[] family, byte[] qualifier, byte[] value)
family - family namequalifier - column qualifiervalue - value to append to specified columnpublic Append add(Cell cell)
cell - public Append setAttribute(String name, byte[] value)
AttributessetAttribute in interface AttributessetAttribute in class OperationWithAttributesname - attribute namevalue - attribute valuepublic Append setId(String id)
OperationWithAttributessetId in class OperationWithAttributesid - id to set for the scan@Deprecated public Append setWriteToWAL(boolean write)
MutationMutation.setDurability(Durability)setWriteToWAL in class Mutationwrite - true if edits should be written to WAL, false if notpublic Append setDurability(Durability d)
MutationsetDurability in class Mutationpublic Append setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
MutationsetFamilyCellMap in class Mutation@Deprecated public Append setFamilyMap(NavigableMap<byte[],List<KeyValue>> map)
MutationsetFamilyMap in class Mutationpublic Append setClusterIds(List<UUID> clusterIds)
MutationsetClusterIds in class MutationclusterIds - of the clusters that have consumed the mutationpublic Append setCellVisibility(CellVisibility expression)
MutationsetCellVisibility in class Mutationpublic Append setACL(String user, Permission perms)
public Append setACL(Map<String,Permission> perms)
public Append setPriority(int priority)
setPriority in class OperationWithAttributesCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.