org.apache.cassandra.db
Class AbstractThreadUnsafeSortedColumns

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ISortedColumns
ISortedColumns.DeletionInfo, ISortedColumns.Factory
 
Constructor Summary
AbstractThreadUnsafeSortedColumns()
           
 
Method Summary
 void addAll(ISortedColumns columns, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation)
          Adds all the columns of a given column map to this column map.
protected abstract  void addAllColumns(ISortedColumns columns, Allocator allocator, com.google.common.base.Function<IColumn,IColumn> transformation)
           
 void delete(ISortedColumns.DeletionInfo newInfo)
           
 ISortedColumns.DeletionInfo getDeletionInfo()
           
 int getEstimatedColumnCount()
           
 boolean isEmpty()
          Returns true if this map is empty, false otherwise.
 void maybeResetDeletionTimes(int gcBefore)
           
 void retainAll(ISortedColumns columns)
           
 
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 org.apache.cassandra.io.util.IIterableColumns
getComparator
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractThreadUnsafeSortedColumns

public AbstractThreadUnsafeSortedColumns()
Method Detail

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