public abstract class ColumnData
extends java.lang.Object
Cell
for simple columns
or ComplexColumnData
for complex columns.Modifier and Type | Field and Description |
---|---|
protected ColumnMetadata |
column |
static java.util.Comparator<ColumnData> |
comparator |
Modifier | Constructor and Description |
---|---|
protected |
ColumnData(ColumnMetadata column) |
Modifier and Type | Method and Description |
---|---|
ColumnMetadata |
column()
The column this is data for.
|
abstract int |
dataSize()
The size of the data hold by this
ColumnData . |
abstract void |
digest(Digest digest)
Adds the data to the provided digest.
|
static void |
digest(Digest digest,
ColumnData cd) |
abstract boolean |
hasInvalidDeletions()
Validates the deletions (ttl and local deletion time) if any.
|
abstract ColumnData |
markCounterLocalToBeCleared() |
abstract long |
maxTimestamp() |
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 ColumnMetadata column
protected ColumnData(ColumnMetadata column)
public final ColumnMetadata column()
public abstract int dataSize()
ColumnData
.ColumnData
.public abstract long unsharedHeapSizeExcludingData()
public abstract void validate()
MarshalException
- if the data is not valid.public abstract boolean hasInvalidDeletions()
public abstract void digest(Digest digest)
digest
- the Digest
to add the data to.public static void digest(Digest digest, ColumnData cd)
public abstract ColumnData updateAllTimestamp(long newTimestamp)
newTimestamp
and
all deletion timestamp by newTimestamp - 1
.
This exists for the Paxos path, see PartitionUpdate#updateAllTimestamp
for additional details.public abstract ColumnData markCounterLocalToBeCleared()
public abstract ColumnData purge(DeletionPurger purger, int nowInSec)
public abstract long maxTimestamp()
Copyright © 2009-2021 The Apache Software Foundation