public class AtomicBTreeColumns extends ColumnFamily
WARNING: removing element through getSortedColumns().iterator() is *not* supported
ColumnFamily.Factory<T extends ColumnFamily>| Modifier and Type | Field and Description |
|---|---|
static ColumnFamily.Factory<AtomicBTreeColumns> |
factory |
metadata, serializer| Modifier and Type | Method and Description |
|---|---|
void |
addAll(ColumnFamily cf)
Adds all the columns of a given column map to this column map.
|
org.apache.cassandra.db.AtomicBTreeColumns.ColumnUpdater |
addAllWithSizeDelta(ColumnFamily cm,
MemtableAllocator allocator,
OpOrder.Group writeOp,
SecondaryIndexManager.Updater indexer)
This is only called by Memtable.resolve, so only AtomicBTreeColumns needs to implement it.
|
void |
addColumn(Cell column)
Adds a cell to this cell map.
|
void |
appendColumn(Cell cell)
Appends a cell.
|
BatchRemoveIterator<Cell> |
batchRemoveIterator() |
void |
clear()
Clear this column family, removing all columns and deletion info.
|
ColumnFamily |
cloneMe()
Clones the column map.
|
void |
delete(DeletionInfo info) |
void |
delete(DeletionTime delTime) |
protected void |
delete(RangeTombstone tombstone) |
DeletionInfo |
deletionInfo() |
Cell |
getColumn(CellName name)
Get a column given its name, returning null if the column is not
present.
|
int |
getColumnCount()
Returns the number of columns in this map.
|
java.lang.Iterable<CellName> |
getColumnNames()
Returns an iterable with the names of columns in this column map in the same order
as the underlying columns themselves.
|
ColumnFamily.Factory |
getFactory()
Returns the factory used for this ISortedColumns implementation.
|
java.util.Collection<Cell> |
getReverseSortedColumns()
Returns the columns of this column map as a collection.
|
java.util.Collection<Cell> |
getSortedColumns()
Returns the columns of this column map as a collection.
|
boolean |
hasColumns()
Returns whether or not there are any columns present.
|
boolean |
isInsertReversed()
Returns if this map only support inserts in reverse order.
|
java.util.Iterator<Cell> |
iterator(ColumnSlice[] slices)
Returns an iterator over the columns of this map that returns only the matching @param slices.
|
void |
maybeAppendColumn(Cell cell,
DeletionInfo.InOrderTester tester,
int gcBefore)
Adds a cell if it's non-gc-able and isn't shadowed by a partition/range tombstone with a higher timestamp.
|
void |
purgeTombstones(int gcBefore)
Purges top-level and range tombstones whose localDeletionTime is older than gcBefore.
|
java.util.Iterator<Cell> |
reverseIterator(ColumnSlice[] slices)
Returns a reversed iterator over the columns of this map that returns only the matching @param slices.
|
SearchIterator<CellName,Cell> |
searchIterator() |
void |
setDeletionInfo(DeletionInfo newInfo) |
addAtom, addColumn, addColumn, addCounter, addTombstone, addTombstone, asMap, cloneMeShallow, cloneMeShallow, cloneMeShallow, dataSize, delete, diff, diff, digest, equals, fromBytes, getColumnStats, getComparator, getType, hashCode, hasOnlyTombstones, id, inOrderDeletionTester, isEmpty, isMarkedForDelete, iterator, liveCQL3RowCount, maxTimestamp, metadata, reverseIterator, toBytes, toString, updateDigestpublic static final ColumnFamily.Factory<AtomicBTreeColumns> factory
public ColumnFamily.Factory getFactory()
ColumnFamilygetFactory in class ColumnFamilypublic ColumnFamily cloneMe()
ColumnFamilycloneMe in class ColumnFamilypublic DeletionInfo deletionInfo()
deletionInfo in class ColumnFamilypublic void delete(DeletionTime delTime)
delete in class ColumnFamilyprotected void delete(RangeTombstone tombstone)
delete in class ColumnFamilypublic SearchIterator<CellName,Cell> searchIterator()
searchIterator in class ColumnFamilypublic void delete(DeletionInfo info)
delete in class ColumnFamilypublic void setDeletionInfo(DeletionInfo newInfo)
setDeletionInfo in class ColumnFamilypublic void purgeTombstones(int gcBefore)
ColumnFamilypurgeTombstones in class ColumnFamilygcBefore - a timestamp (in seconds) before which tombstones should be purgedpublic org.apache.cassandra.db.AtomicBTreeColumns.ColumnUpdater addAllWithSizeDelta(ColumnFamily cm, MemtableAllocator allocator, OpOrder.Group writeOp, SecondaryIndexManager.Updater indexer)
public void addColumn(Cell column)
ColumnFamilyaddColumn in class ColumnFamilypublic void maybeAppendColumn(Cell cell, DeletionInfo.InOrderTester tester, int gcBefore)
ColumnFamilymaybeAppendColumn in class ColumnFamilypublic void appendColumn(Cell cell)
ColumnFamilyappendColumn in class ColumnFamilypublic void addAll(ColumnFamily cf)
ColumnFamily
for (Cell c : cm)
addColumn(c, ...);
but is potentially faster.addAll in class ColumnFamilypublic void clear()
ColumnFamilyclear in class ColumnFamilypublic Cell getColumn(CellName name)
ColumnFamilygetColumn in class ColumnFamilypublic java.lang.Iterable<CellName> getColumnNames()
ColumnFamilygetColumnNames in class ColumnFamilypublic java.util.Collection<Cell> getSortedColumns()
ColumnFamilygetSortedColumns in class ColumnFamilypublic java.util.Collection<Cell> getReverseSortedColumns()
ColumnFamilygetReverseSortedColumns in class ColumnFamilypublic int getColumnCount()
ColumnFamilygetColumnCount in class ColumnFamilypublic boolean hasColumns()
ColumnFamilyhasColumns in class ColumnFamilypublic java.util.Iterator<Cell> iterator(ColumnSlice[] slices)
ColumnFamilyiterator in class ColumnFamilypublic java.util.Iterator<Cell> reverseIterator(ColumnSlice[] slices)
ColumnFamilyreverseIterator in class ColumnFamilypublic boolean isInsertReversed()
ColumnFamilyisInsertReversed in class ColumnFamilypublic BatchRemoveIterator<Cell> batchRemoveIterator()
batchRemoveIterator in class ColumnFamilyCopyright © 2018 The Apache Software Foundation