|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISortedColumns
A sorted map of columns. This represents the backing map of a colum family. Whether the implementation is thread safe or not is left to the implementing classes.
Nested Class Summary | |
---|---|
static interface |
ISortedColumns.Factory
|
Method Summary | |
---|---|
void |
addAll(ISortedColumns cm,
Allocator allocator)
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. |
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. |
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. |
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()
Returns an iterator that iterates over the columns of this map in reverse order. |
int |
size()
Returns the number of columns in this map. |
Methods inherited from interface org.apache.cassandra.io.util.IIterableColumns |
---|
getComparator, getEstimatedColumnCount |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
ISortedColumns cloneMe()
ISortedColumns.Factory getFactory()
void addColumn(IColumn column, Allocator allocator)
void addAll(ISortedColumns cm, Allocator allocator)
for (Column c : cm)
add(c);
but is potentially faster.
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> reverseIterator()
boolean isInsertReversed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |