|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentSkipListMap<java.nio.ByteBuffer,IColumn>
org.apache.cassandra.db.ThreadSafeSortedColumns
public class ThreadSafeSortedColumns
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ISortedColumns |
---|
ISortedColumns.Factory |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static ISortedColumns.Factory |
factory
|
Method Summary | |
---|---|
void |
addAll(ISortedColumns cm,
Allocator allocator)
We need to go through each column in the column container and resolve it before adding |
void |
addColumn(IColumn column,
Allocator allocator)
Adds a column to this column map. |
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()
|
int |
getEstimatedColumnCount()
|
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()
|
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. |
Methods inherited from class java.util.concurrent.ConcurrentSkipListMap |
---|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putIfAbsent, remove, remove, replace, replace, size, subMap, subMap, tailMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
---|
hashCode, putAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.cassandra.db.ISortedColumns |
---|
clear, isEmpty, size |
Methods inherited from interface java.util.Map |
---|
hashCode, putAll |
Field Detail |
---|
public static final ISortedColumns.Factory factory
Method Detail |
---|
public static ISortedColumns.Factory factory()
public AbstractType<?> getComparator()
getComparator
in interface IIterableColumns
public ISortedColumns.Factory getFactory()
ISortedColumns
getFactory
in interface ISortedColumns
public ISortedColumns cloneMe()
ISortedColumns
cloneMe
in interface ISortedColumns
public boolean isInsertReversed()
ISortedColumns
isInsertReversed
in interface ISortedColumns
public void addColumn(IColumn column, Allocator allocator)
ISortedColumns
addColumn
in interface ISortedColumns
public void addAll(ISortedColumns cm, Allocator allocator)
addAll
in interface ISortedColumns
public boolean replace(IColumn oldColumn, IColumn newColumn)
ISortedColumns
replace
in interface ISortedColumns
public IColumn getColumn(java.nio.ByteBuffer name)
ISortedColumns
getColumn
in interface ISortedColumns
public void removeColumn(java.nio.ByteBuffer name)
ISortedColumns
removeColumn
in interface ISortedColumns
public java.util.Collection<IColumn> getSortedColumns()
ISortedColumns
getSortedColumns
in interface ISortedColumns
public java.util.Collection<IColumn> getReverseSortedColumns()
ISortedColumns
getReverseSortedColumns
in interface ISortedColumns
public java.util.SortedSet<java.nio.ByteBuffer> getColumnNames()
ISortedColumns
getColumnNames
in interface ISortedColumns
public int getEstimatedColumnCount()
getEstimatedColumnCount
in interface IIterableColumns
public java.util.Iterator<IColumn> iterator()
iterator
in interface java.lang.Iterable<IColumn>
public java.util.Iterator<IColumn> reverseIterator()
ISortedColumns
reverseIterator
in interface ISortedColumns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |