public class ComplexColumnData extends ColumnData implements java.lang.Iterable<Cell<?>>
| Modifier and Type | Class and Description |
|---|---|
static class |
ComplexColumnData.Builder |
column, comparator| Modifier and Type | Method and Description |
|---|---|
<A> long |
accumulate(BiLongAccumulator<A,Cell<?>> accumulator,
A arg,
long initialValue) |
long |
accumulate(LongAccumulator<Cell<?>> accumulator,
long initialValue) |
static ComplexColumnData.Builder |
builder() |
int |
cellsCount() |
DeletionTime |
complexDeletion()
The complex deletion time of the complex column.
|
int |
dataSize()
The size of the data hold by this
ColumnData. |
void |
digest(Digest digest)
Adds the data to the provided digest.
|
boolean |
equals(java.lang.Object other) |
ComplexColumnData |
filter(ColumnFilter filter,
DeletionTime activeDeletion,
DroppedColumn dropped,
LivenessInfo rowLiveness) |
Cell<?> |
getCell(CellPath path) |
Cell<?> |
getCellByIndex(int idx) |
int |
hashCode() |
boolean |
hasInvalidDeletions()
Validates the deletions (ttl and local deletion time) if any.
|
java.util.Iterator<Cell<?>> |
iterator() |
ComplexColumnData |
markCounterLocalToBeCleared() |
long |
maxTimestamp() |
ComplexColumnData |
purge(DeletionPurger purger,
int nowInSec) |
java.util.Iterator<Cell<?>> |
reverseIterator() |
long |
unsharedHeapSizeExcludingData() |
ComplexColumnData |
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. |
void |
validate()
Validate the column data.
|
ComplexColumnData |
withOnlyQueriedData(ColumnFilter filter) |
column, digestpublic int cellsCount()
public Cell<?> getCellByIndex(int idx)
public DeletionTime complexDeletion()
The returned "complex deletion" is a deletion of all the cells of the column. For instance, for a collection, this correspond to a full collection deletion. Please note that this deletion says nothing about the individual cells of the complex column: there can be no complex deletion but some of the individual cells can be deleted.
DeletionTime.LIVE
if the column is not deleted.public java.util.Iterator<Cell<?>> iterator()
iterator in interface java.lang.Iterable<Cell<?>>public java.util.Iterator<Cell<?>> reverseIterator()
public long accumulate(LongAccumulator<Cell<?>> accumulator, long initialValue)
public <A> long accumulate(BiLongAccumulator<A,Cell<?>> accumulator, A arg, long initialValue)
public int dataSize()
ColumnDataColumnData.dataSize in class ColumnDataColumnData.public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData in class ColumnDatapublic void validate()
ColumnDatavalidate in class ColumnDatapublic void digest(Digest digest)
ColumnDatadigest in class ColumnDatadigest - the Digest to add the data to.public boolean hasInvalidDeletions()
ColumnDatahasInvalidDeletions in class ColumnDatapublic ComplexColumnData markCounterLocalToBeCleared()
markCounterLocalToBeCleared in class ColumnDatapublic ComplexColumnData filter(ColumnFilter filter, DeletionTime activeDeletion, DroppedColumn dropped, LivenessInfo rowLiveness)
public ComplexColumnData purge(DeletionPurger purger, int nowInSec)
purge in class ColumnDatapublic ComplexColumnData withOnlyQueriedData(ColumnFilter filter)
public ComplexColumnData updateAllTimestamp(long newTimestamp)
ColumnDatanewTimestamp and
all deletion timestamp by newTimestamp - 1.
This exists for the Paxos path, see PartitionUpdate#updateAllTimestamp for additional details.updateAllTimestamp in class ColumnDatapublic long maxTimestamp()
maxTimestamp in class ColumnDatapublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static ComplexColumnData.Builder builder()
Copyright © 2009-2020 The Apache Software Foundation