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() |
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.
|
columnpublic 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()
ColumnDataColumnData.dataSize in class ColumnDataColumnData.public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData in class ColumnDatapublic void validate()
ColumnDatavalidate in class ColumnDatapublic void digest(java.security.MessageDigest digest)
ColumnDatadigest in class ColumnDatadigest - the MessageDigest to add the data to.public ComplexColumnData markCounterLocalToBeCleared()
markCounterLocalToBeCleared in class ColumnDatapublic ComplexColumnData filter(ColumnFilter filter, DeletionTime activeDeletion, CFMetaData.DroppedColumn dropped)
public ComplexColumnData purge(DeletionPurger purger, int nowInSec)
purge in class ColumnDatapublic ComplexColumnData updateAllTimestamp(long newTimestamp)
ColumnDatanewTimestamp and
all deletion timestamp by newTimestamp - 1.
This exists for the Paxos path, see PartitionUpdate.updateAllTimestamp(long) for additional details.updateAllTimestamp 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 © 2016 The Apache Software Foundation