public class ArrayBackedSortedColumns extends AbstractThreadUnsafeSortedColumns implements ISortedColumns
ISortedColumns.Factory| Modifier and Type | Field and Description |
|---|---|
static ISortedColumns.Factory |
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)
AddColumn throws an exception if the column added does not sort after
the last column in the map.
|
void |
clear()
Clear this column map, removing all columns.
|
ISortedColumns |
cloneMe()
Shallow cloning of the column map.
|
static ISortedColumns.Factory |
factory() |
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.
|
AbstractType<?> |
getComparator() |
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 |
isInsertReversed()
Returns if this map only support inserts in reverse order.
|
java.util.Iterator<IColumn> |
iterator() |
java.util.Iterator<IColumn> |
iterator(ColumnSlice[] slices)
Returns an iterator over the columns of this map that returns only the matching @param slices.
|
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.
|
java.util.Iterator<IColumn> |
reverseIterator(ColumnSlice[] slices)
Returns a reversed iterator over the columns of this map that returns only the matching @param slices.
|
int |
size()
Returns the number of columns in this map.
|
delete, delete, getDeletionInfo, getEstimatedColumnCount, isEmpty, maybeResetDeletionTimes, retainAll, setDeletionInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, delete, getDeletionInfo, isEmpty, maybeResetDeletionTimes, retainAll, setDeletionInfogetEstimatedColumnCountpublic static final ISortedColumns.Factory factory
public static ISortedColumns.Factory factory()
public ISortedColumns.Factory getFactory()
ISortedColumnsgetFactory in interface ISortedColumnspublic AbstractType<?> getComparator()
getComparator in interface IIterableColumnspublic ISortedColumns cloneMe()
ISortedColumnscloneMe in interface ISortedColumnspublic boolean isInsertReversed()
ISortedColumnsisInsertReversed in interface ISortedColumnspublic IColumn getColumn(java.nio.ByteBuffer name)
ISortedColumnsgetColumn in interface ISortedColumnspublic void addColumn(IColumn column, Allocator allocator)
addColumn in interface ISortedColumnspublic long addAllWithSizeDelta(ISortedColumns cm, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation, SecondaryIndexManager.Updater indexer)
ISortedColumns
for (Column c : cm)
add(c);
but is potentially faster.addAllWithSizeDelta in interface ISortedColumnspublic void addAll(ISortedColumns cm, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation)
ISortedColumnsaddAll in interface ISortedColumnspublic boolean replace(IColumn oldColumn, IColumn newColumn)
ISortedColumnsreplace in interface ISortedColumnspublic java.util.Collection<IColumn> getSortedColumns()
ISortedColumnsgetSortedColumns in interface ISortedColumnspublic java.util.Collection<IColumn> getReverseSortedColumns()
ISortedColumnsgetReverseSortedColumns in interface ISortedColumnspublic void removeColumn(java.nio.ByteBuffer name)
ISortedColumnsremoveColumn in interface ISortedColumnspublic int size()
ISortedColumnssize in interface ISortedColumnspublic void clear()
ISortedColumnsclear in interface ISortedColumnspublic java.util.SortedSet<java.nio.ByteBuffer> getColumnNames()
ISortedColumnsgetColumnNames in interface ISortedColumnspublic java.util.Iterator<IColumn> iterator()
iterator in interface java.lang.Iterable<IColumn>public java.util.Iterator<IColumn> iterator(ColumnSlice[] slices)
ISortedColumnsiterator in interface ISortedColumnspublic java.util.Iterator<IColumn> reverseIterator(ColumnSlice[] slices)
ISortedColumnsreverseIterator in interface ISortedColumnsCopyright © 2014 The Apache Software Foundation