public interface ISortedColumns extends IIterableColumns
Modifier and Type | Interface and Description |
---|---|
static interface |
ISortedColumns.Factory |
Modifier and Type | Method and Description |
---|---|
void |
addAll(ISortedColumns cm,
Allocator allocator,
com.google.common.base.Function<IColumn,IColumn> transformation)
Adds the columns without necessarily computing the size delta
|
long |
addAllWithSizeDelta(ISortedColumns cm,
Allocator allocator,
com.google.common.base.Function<IColumn,IColumn> transformation,
SecondaryIndexManager.Updater indexer)
Adds all the columns of a given column map to this column map.
|
void |
addColumn(IColumn column,
Allocator allocator)
Adds a column to this column map.
|
void |
clear()
Clear this column map, removing all columns.
|
ISortedColumns |
cloneMe()
Shallow cloning of the column map.
|
void |
delete(DeletionInfo info) |
void |
delete(RangeTombstone tombstone) |
IColumn |
getColumn(java.nio.ByteBuffer name)
Get a column given its name, returning null if the column is not
present.
|
java.util.SortedSet<java.nio.ByteBuffer> |
getColumnNames()
Returns a set with the names of columns in this column map.
|
DeletionInfo |
getDeletionInfo() |
ISortedColumns.Factory |
getFactory()
Returns the factory used for this ISortedColumns implementation.
|
java.util.Collection<IColumn> |
getReverseSortedColumns()
Returns the columns of this column map as a collection.
|
java.util.Collection<IColumn> |
getSortedColumns()
Returns the columns of this column map as a collection.
|
boolean |
isEmpty()
Returns true if this map is empty, false otherwise.
|
boolean |
isInsertReversed()
Returns if this map only support inserts in reverse order.
|
java.util.Iterator<IColumn> |
iterator(ColumnSlice[] slices)
Returns an iterator over the columns of this map that returns only the matching @param slices.
|
void |
maybeResetDeletionTimes(int gcBefore) |
void |
removeColumn(java.nio.ByteBuffer name)
Remove if present a column by name.
|
boolean |
replace(IColumn oldColumn,
IColumn newColumn)
Replace oldColumn if present by newColumn.
|
void |
retainAll(ISortedColumns columns) |
java.util.Iterator<IColumn> |
reverseIterator(ColumnSlice[] slices)
Returns a reversed iterator over the columns of this map that returns only the matching @param slices.
|
void |
setDeletionInfo(DeletionInfo info) |
int |
size()
Returns the number of columns in this map.
|
getComparator, getEstimatedColumnCount
ISortedColumns cloneMe()
ISortedColumns.Factory getFactory()
DeletionInfo getDeletionInfo()
void setDeletionInfo(DeletionInfo info)
void delete(DeletionInfo info)
void delete(RangeTombstone tombstone)
void maybeResetDeletionTimes(int gcBefore)
void retainAll(ISortedColumns columns)
void addColumn(IColumn column, Allocator allocator)
long addAllWithSizeDelta(ISortedColumns cm, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation, SecondaryIndexManager.Updater indexer)
for (Column c : cm)
add(c);
but is potentially faster.void addAll(ISortedColumns cm, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation)
boolean replace(IColumn oldColumn, IColumn newColumn)
void removeColumn(java.nio.ByteBuffer name)
void clear()
IColumn getColumn(java.nio.ByteBuffer name)
java.util.SortedSet<java.nio.ByteBuffer> getColumnNames()
java.util.Collection<IColumn> getSortedColumns()
java.util.Collection<IColumn> getReverseSortedColumns()
int size()
boolean isEmpty()
java.util.Iterator<IColumn> iterator(ColumnSlice[] slices)
java.util.Iterator<IColumn> reverseIterator(ColumnSlice[] slices)
boolean isInsertReversed()
Copyright © 2013 The Apache Software Foundation