@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class Mutation extends OperationWithAttributes implements Row, CellScannable, HeapSize
Modifier and Type | Field and Description |
---|---|
protected Durability |
durability |
protected NavigableMap<byte[],List<Cell>> |
familyMap |
static long |
MUTATION_OVERHEAD |
protected byte[] |
row |
protected long |
ts |
ID_ATRIBUTE
Constructor and Description |
---|
Mutation() |
Modifier and Type | Method and Description |
---|---|
CellScanner |
cellScanner() |
int |
compareTo(Row d) |
protected long |
extraHeapSize()
Subclasses should override this method to add the heap size of their own fields.
|
List<UUID> |
getClusterIds() |
Durability |
getDurability()
Get the current durability
|
NavigableMap<byte[],List<Cell>> |
getFamilyCellMap()
Method for retrieving the put's familyMap
|
Map<byte[],List<KeyValue>> |
getFamilyMap()
Deprecated.
|
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
|
boolean |
getWriteToWAL()
Deprecated.
|
long |
heapSize() |
boolean |
isEmpty()
Method to check if the familyMap is empty
|
int |
numFamilies() |
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. |
void |
setWriteToWAL(boolean writeToWal)
Deprecated.
|
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.
|
getAttribute, getAttributeSize, getAttributesMap, getId, setAttribute, setId
public static final long MUTATION_OVERHEAD
protected byte[] row
protected long ts
protected Durability durability
protected NavigableMap<byte[],List<Cell>> familyMap
public CellScanner cellScanner()
cellScanner
in interface CellScannable
public Map<String,Object> getFingerprint()
getFingerprint
in class Operation
public Map<String,Object> toMap(int maxCols)
public void setDurability(Durability d)
d
- public Durability getDurability()
@Deprecated public void setWriteToWAL(boolean writeToWal)
writeToWal
- @Deprecated public boolean getWriteToWAL()
@Deprecated public Map<byte[],List<KeyValue>> getFamilyMap()
public NavigableMap<byte[],List<Cell>> getFamilyCellMap()
public void setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
@Deprecated public void setFamilyMap(NavigableMap<byte[],List<KeyValue>> map)
setFamilyCellMap(NavigableMap)
instead.public boolean isEmpty()
public byte[] getRow()
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()
public int size()
public int numFamilies()
public long heapSize()
protected long extraHeapSize()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.