org.apache.cassandra.db
Class AbstractThreadUnsafeSortedColumns
java.lang.Object
org.apache.cassandra.db.AbstractThreadUnsafeSortedColumns
- All Implemented Interfaces:
- java.lang.Iterable<IColumn>, ISortedColumns, IIterableColumns
- Direct Known Subclasses:
- ArrayBackedSortedColumns, ThreadSafeSortedColumns, TreeMapBackedSortedColumns
public abstract class AbstractThreadUnsafeSortedColumns
- extends java.lang.Object
- implements ISortedColumns
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cassandra.db.ISortedColumns |
addColumn, clear, cloneMe, getColumn, getColumnNames, getFactory, getReverseSortedColumns, getSortedColumns, isInsertReversed, iterator, removeColumn, replace, reverseIterator, reverseIterator, size |
Methods inherited from interface java.lang.Iterable |
iterator |
AbstractThreadUnsafeSortedColumns
public AbstractThreadUnsafeSortedColumns()
getDeletionInfo
public ISortedColumns.DeletionInfo getDeletionInfo()
- Specified by:
getDeletionInfo
in interface ISortedColumns
delete
public void delete(ISortedColumns.DeletionInfo newInfo)
- Specified by:
delete
in interface ISortedColumns
maybeResetDeletionTimes
public void maybeResetDeletionTimes(int gcBefore)
- Specified by:
maybeResetDeletionTimes
in interface ISortedColumns
retainAll
public void retainAll(ISortedColumns columns)
- Specified by:
retainAll
in interface ISortedColumns
addAllColumns
protected abstract void addAllColumns(ISortedColumns columns,
Allocator allocator,
com.google.common.base.Function<IColumn,IColumn> transformation)
addAll
public void addAll(ISortedColumns columns,
Allocator allocator,
com.google.common.base.Function<IColumn,IColumn> transformation)
- Description copied from interface:
ISortedColumns
- Adds all the columns of a given column map to this column map.
This is equivalent to:
for (Column c : cm)
add(c);
but is potentially faster.
- Specified by:
addAll
in interface ISortedColumns
isEmpty
public boolean isEmpty()
- Description copied from interface:
ISortedColumns
- Returns true if this map is empty, false otherwise.
- Specified by:
isEmpty
in interface ISortedColumns
getEstimatedColumnCount
public int getEstimatedColumnCount()
- Specified by:
getEstimatedColumnCount
in interface IIterableColumns
Copyright © 2012 The Apache Software Foundation