|
||||||||||
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
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class Mutation
Field Summary | |
---|---|
protected Durability |
durability
|
protected NavigableMap<byte[],List<Cell>> |
familyMap
|
static long |
MUTATION_OVERHEAD
|
protected byte[] |
row
|
protected long |
ts
|
Fields inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes |
---|
ID_ATRIBUTE |
Constructor Summary | |
---|---|
Mutation()
|
Method Summary | |
---|---|
CellScanner |
cellScanner()
|
int |
compareTo(Row d)
|
protected long |
extraHeapSize()
Subclasses should override this method to add the heap size of their own fields. |
byte[] |
getACL()
|
boolean |
getACLStrategy()
Deprecated. No effect |
CellVisibility |
getCellVisibility()
|
List<UUID> |
getClusterIds()
|
Durability |
getDurability()
Get the current durability |
NavigableMap<byte[],List<Cell>> |
getFamilyCellMap()
Method for retrieving the put's familyMap |
NavigableMap<byte[],List<KeyValue>> |
getFamilyMap()
Deprecated. use getFamilyCellMap() instead. |
Map<String,Object> |
getFingerprint()
Compile the column family (i.e. |
byte[] |
getRow()
Method for retrieving the delete's row |
long |
getTimeStamp()
Method for retrieving the timestamp |
long |
getTTL()
Return the TTL requested for the result of the mutation, in milliseconds. |
boolean |
getWriteToWAL()
Deprecated. Use getDurability() instead. |
long |
heapSize()
|
boolean |
isEmpty()
Method to check if the familyMap is empty |
int |
numFamilies()
|
void |
setACL(Map<String,Permission> perms)
|
void |
setACL(String user,
Permission perms)
|
void |
setACLStrategy(boolean cellFirstStrategy)
Deprecated. No effect |
void |
setCellVisibility(CellVisibility expression)
Sets the visibility expression associated with cells in this Mutation. |
void |
setClusterIds(List<UUID> clusterIds)
Marks that the clusters with the given clusterIds have consumed the mutation |
void |
setDurability(Durability d)
Set the durability for this mutation |
void |
setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
Method for setting the put's familyMap |
void |
setFamilyMap(NavigableMap<byte[],List<KeyValue>> map)
Deprecated. use setFamilyCellMap(NavigableMap) instead. |
Mutation |
setTTL(long ttl)
Set the TTL desired for the result of the mutation, in milliseconds. |
void |
setWriteToWAL(boolean write)
Deprecated. Use setDurability(Durability) instead. |
int |
size()
Number of KeyValues carried by this Mutation. |
Map<String,Object> |
toMap(int maxCols)
Compile the details beyond the scope of getFingerprint (row, columns, timestamps, etc.) into a Map along with the fingerprinted information. |
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 |
Field Detail |
---|
public static final long MUTATION_OVERHEAD
protected byte[] row
protected long ts
protected Durability durability
protected NavigableMap<byte[],List<Cell>> familyMap
Constructor Detail |
---|
public Mutation()
Method Detail |
---|
public CellScanner cellScanner()
cellScanner
in interface CellScannable
public Map<String,Object> getFingerprint()
getFingerprint
in class Operation
public Map<String,Object> toMap(int maxCols)
toMap
in class Operation
maxCols
- a limit on the number of columns output prior to truncation
@Deprecated public boolean getWriteToWAL()
getDurability()
instead.
@Deprecated public void setWriteToWAL(boolean write)
setDurability(Durability)
instead.
setDurability(Durability)
write
- true if edits should be written to WAL, false if notpublic void setDurability(Durability d)
d
- public Durability getDurability()
public NavigableMap<byte[],List<Cell>> getFamilyCellMap()
public void setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
@Deprecated public NavigableMap<byte[],List<KeyValue>> getFamilyMap()
getFamilyCellMap()
instead.
@Deprecated public void setFamilyMap(NavigableMap<byte[],List<KeyValue>> map)
setFamilyCellMap(NavigableMap)
instead.
public boolean isEmpty()
public byte[] getRow()
getRow
in interface Row
public int compareTo(Row d)
compareTo
in interface Comparable<Row>
public long getTimeStamp()
public void setClusterIds(List<UUID> clusterIds)
clusterIds
- of the clusters that have consumed the mutationpublic List<UUID> getClusterIds()
@InterfaceStability.Unstable public void setCellVisibility(CellVisibility expression)
CellVisibility
on Delete
mutation.
expression
- @InterfaceStability.Unstable public CellVisibility getCellVisibility() throws DeserializationException
DeserializationException
public int size()
public int numFamilies()
public long heapSize()
heapSize
in interface HeapSize
@InterfaceStability.Unstable public byte[] getACL()
@InterfaceStability.Unstable public void setACL(String user, Permission perms)
user
- User short nameperms
- Permissions for the user@InterfaceStability.Unstable public void setACL(Map<String,Permission> perms)
perms
- A map of permissions for a user or users@Deprecated public boolean getACLStrategy()
@Deprecated public void setACLStrategy(boolean cellFirstStrategy)
@InterfaceStability.Unstable public long getTTL()
@InterfaceStability.Unstable public Mutation setTTL(long ttl)
ttl
- the TTL desired for the result of the mutation, in milliseconds
protected long extraHeapSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |