public abstract class ColumnData
extends java.lang.Object
Cell for simple columns
or ComplexColumnData for complex columns.| Modifier and Type | Field and Description |
|---|---|
protected ColumnDefinition |
column |
static java.util.Comparator<ColumnData> |
comparator |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnData(ColumnDefinition column) |
| Modifier and Type | Method and Description |
|---|---|
ColumnDefinition |
column()
The column this is data for.
|
abstract int |
dataSize()
The size of the data hold by this
ColumnData. |
abstract void |
digest(java.security.MessageDigest digest)
Adds the data to the provided digest.
|
abstract ColumnData |
markCounterLocalToBeCleared() |
abstract ColumnData |
purge(DeletionPurger purger,
int nowInSec) |
abstract long |
unsharedHeapSizeExcludingData() |
abstract ColumnData |
updateAllTimestamp(long newTimestamp)
Returns a copy of the data where all timestamps for live data have replaced by
newTimestamp and
all deletion timestamp by newTimestamp - 1. |
abstract void |
validate()
Validate the column data.
|
public static final java.util.Comparator<ColumnData> comparator
protected final ColumnDefinition column
protected ColumnData(ColumnDefinition column)
public final ColumnDefinition column()
public abstract int dataSize()
ColumnData.ColumnData.public abstract long unsharedHeapSizeExcludingData()
public abstract void validate()
MarshalException - if the data is not valid.public abstract void digest(java.security.MessageDigest digest)
digest - the MessageDigest to add the data to.public abstract ColumnData updateAllTimestamp(long newTimestamp)
newTimestamp and
all deletion timestamp by newTimestamp - 1.
This exists for the Paxos path, see PartitionUpdate.updateAllTimestamp(long) for additional details.public abstract ColumnData markCounterLocalToBeCleared()
public abstract ColumnData purge(DeletionPurger purger, int nowInSec)
Copyright © 2016 The Apache Software Foundation