public abstract class Mutation extends OperationWithAttributes implements Row
Modifier and Type | Field and Description |
---|---|
protected Map<byte[],List<KeyValue>> |
familyMap |
protected long |
lockId |
protected byte[] |
row |
protected long |
ts |
protected boolean |
writeToWAL |
ID_ATRIBUTE
Constructor and Description |
---|
Mutation() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Row d) |
UUID |
getClusterId() |
List<UUID> |
getClusterIds() |
Durability |
getDurability()
Get the current durability
|
Map<byte[],List<KeyValue>> |
getFamilyMap()
Method for retrieving the put's familyMap
|
Map<String,Object> |
getFingerprint()
Compile the column family (i.e.
|
long |
getLockId()
Deprecated.
RowLock and associated operations are deprecated |
byte[] |
getRow()
Method for retrieving the delete's row
|
RowLock |
getRowLock()
Deprecated.
RowLock and associated operations are deprecated |
long |
getTimeStamp()
Method for retrieving the timestamp
|
boolean |
getWriteToWAL()
Deprecated.
Use
getDurability() instead. |
boolean |
isEmpty()
Method to check if the familyMap is empty
|
int |
numFamilies() |
void |
setClusterId(UUID clusterId)
Set the replication custer id.
|
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 |
setFamilyMap(Map<byte[],List<KeyValue>> map)
Method for setting the put's familyMap
|
void |
setWriteToWAL(boolean write)
Deprecated.
Use
setDurability(Durability) instead. |
int |
size() |
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.
|
getAttribute, getAttributeSize, getAttributesMap, getId, readAttributes, setAttribute, setId, writeAttributes
toJSON, toJSON, toMap, toString, toString
protected byte[] row
protected long ts
protected long lockId
protected boolean writeToWAL
public Map<String,Object> getFingerprint()
getFingerprint
in class Operation
public Map<String,Object> toMap(int maxCols)
public boolean getWriteToWAL()
getDurability()
instead.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)
Durability.SKIP_WAL
.
This method will reset any changes made via setWriteToWAL(boolean)
d
- public Durability getDurability()
public Map<byte[],List<KeyValue>> getFamilyMap()
public void setFamilyMap(Map<byte[],List<KeyValue>> map)
public boolean isEmpty()
public byte[] getRow()
public int compareTo(Row d)
compareTo
in interface Comparable<Row>
public RowLock getRowLock()
RowLock
and associated operations are deprecatedpublic long getLockId()
RowLock
and associated operations are deprecatedpublic long getTimeStamp()
public void setClusterId(UUID clusterId)
clusterId
- public UUID getClusterId()
public void setClusterIds(List<UUID> clusterIds)
clusterIds
- of the clusters that have consumed the mutationpublic List<UUID> getClusterIds()
public int size()
public int numFamilies()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.