public class ComplexColumnData extends ColumnData implements java.lang.Iterable<Cell<?>>
Modifier and Type | Class and Description |
---|---|
static class |
ComplexColumnData.Builder |
ColumnData.PostReconciliationFunction, ColumnData.Reconciler
column, comparator, noOp
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() |
ColumnData |
clone(Cloner cloner) |
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() |
SearchIterator<CellPath,Cell> |
searchIterator() |
java.lang.String |
toString() |
<V> ComplexColumnData |
transform(com.google.common.base.Function<? super Cell<?>,? extends Cell<?>> function) |
ComplexColumnData |
transformAndFilter(DeletionTime newDeletion,
com.google.common.base.Function<? super Cell,? extends Cell> function) |
ComplexColumnData |
transformAndFilter(com.google.common.base.Function<? super Cell<?>,? extends Cell<?>> function) |
static ComplexColumnData |
unsafeConstruct(ColumnMetadata column,
java.lang.Object[] cells,
DeletionTime complexDeletion) |
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, digest, reconciler
public 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 SearchIterator<CellPath,Cell> searchIterator()
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()
ColumnData
ColumnData
.dataSize
in class ColumnData
ColumnData
.public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData
in class ColumnData
public void validate()
ColumnData
validate
in class ColumnData
public void digest(Digest digest)
ColumnData
digest
in class ColumnData
digest
- the Digest
to add the data to.public boolean hasInvalidDeletions()
ColumnData
hasInvalidDeletions
in class ColumnData
public ComplexColumnData markCounterLocalToBeCleared()
markCounterLocalToBeCleared
in class ColumnData
public ComplexColumnData filter(ColumnFilter filter, DeletionTime activeDeletion, DroppedColumn dropped, LivenessInfo rowLiveness)
public ComplexColumnData purge(DeletionPurger purger, int nowInSec)
purge
in class ColumnData
public ComplexColumnData withOnlyQueriedData(ColumnFilter filter)
public ComplexColumnData transformAndFilter(com.google.common.base.Function<? super Cell<?>,? extends Cell<?>> function)
public ComplexColumnData transformAndFilter(DeletionTime newDeletion, com.google.common.base.Function<? super Cell,? extends Cell> function)
public <V> ComplexColumnData transform(com.google.common.base.Function<? super Cell<?>,? extends Cell<?>> function)
public ColumnData clone(Cloner cloner)
clone
in class ColumnData
public ComplexColumnData updateAllTimestamp(long newTimestamp)
ColumnData
newTimestamp
and
all deletion timestamp by newTimestamp - 1
.
This exists for the Paxos path, see PartitionUpdate#updateAllTimestamp
for additional details.updateAllTimestamp
in class ColumnData
public long maxTimestamp()
maxTimestamp
in class ColumnData
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static ComplexColumnData unsafeConstruct(ColumnMetadata column, java.lang.Object[] cells, DeletionTime complexDeletion)
public static ComplexColumnData.Builder builder()
Copyright © 2009- The Apache Software Foundation