|
||||||||||
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
public abstract class Mutation
Field Summary | |
---|---|
protected Map<byte[],List<KeyValue>> |
familyMap
|
protected long |
lockId
|
protected byte[] |
row
|
protected long |
ts
|
protected boolean |
writeToWAL
|
Constructor Summary | |
---|---|
Mutation()
|
Method Summary | |
---|---|
int |
compareTo(Row d)
|
UUID |
getClusterId()
|
Map<byte[],List<KeyValue>> |
getFamilyMap()
Method for retrieving the put's familyMap |
Map<String,Object> |
getFingerprint()
Compile the column family (i.e. |
long |
getLockId()
Method for retrieving the delete's lock ID. |
byte[] |
getRow()
Method for retrieving the delete's row |
RowLock |
getRowLock()
Method for retrieving the delete's RowLock |
long |
getTimeStamp()
Method for retrieving the timestamp |
boolean |
getWriteToWAL()
|
boolean |
isEmpty()
Method to check if the familyMap is empty |
void |
setClusterId(UUID clusterId)
Set the replication custer id. |
void |
setFamilyMap(Map<byte[],List<KeyValue>> map)
Method for setting the put's familyMap |
void |
setWriteToWAL(boolean write)
Set whether this Delete should be written to the WAL or not. |
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, readAttributes, setAttribute, writeAttributes |
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 |
---|
protected byte[] row
protected long ts
protected long lockId
protected boolean writeToWAL
protected Map<byte[],List<KeyValue>> familyMap
Constructor Detail |
---|
public Mutation()
Method Detail |
---|
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
public boolean getWriteToWAL()
public void setWriteToWAL(boolean write)
write
- true if edits should be written to WAL, false if notpublic Map<byte[],List<KeyValue>> getFamilyMap()
public void setFamilyMap(Map<byte[],List<KeyValue>> map)
public boolean isEmpty()
public byte[] getRow()
public int compareTo(Row d)
public RowLock getRowLock()
public long getLockId()
public long getTimeStamp()
public void setClusterId(UUID clusterId)
clusterId
- public UUID getClusterId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |