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 |
---|---|
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(java.security.MessageDigest digest)
Adds the data to the provided digest.
|
boolean |
equals(java.lang.Object other) |
ComplexColumnData |
filter(ColumnFilter filter,
DeletionTime activeDeletion,
CFMetaData.DroppedColumn dropped) |
Cell |
getCell(CellPath path) |
Cell |
getCellByIndex(int idx) |
boolean |
hasCells() |
int |
hashCode() |
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.
|
column
public boolean hasCells()
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 java.util.Iterator<Cell> reverseIterator()
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(java.security.MessageDigest digest)
ColumnData
digest
in class ColumnData
digest
- the MessageDigest
to add the data to.public ComplexColumnData markCounterLocalToBeCleared()
markCounterLocalToBeCleared
in class ColumnData
public ComplexColumnData filter(ColumnFilter filter, DeletionTime activeDeletion, CFMetaData.DroppedColumn dropped)
public ComplexColumnData purge(DeletionPurger purger, int nowInSec)
purge
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(long)
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 static ComplexColumnData.Builder builder()
Copyright © 2018 The Apache Software Foundation