org.apache.cassandra.db
Class AbstractColumnContainer
java.lang.Object
org.apache.cassandra.db.AbstractColumnContainer
- All Implemented Interfaces:
- java.lang.Iterable<IColumn>, IColumnContainer, IIterableColumns
- Direct Known Subclasses:
- ColumnFamily, SuperColumn
public abstract class AbstractColumnContainer
- extends java.lang.Object
- implements IColumnContainer, IIterableColumns
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deletionInfo
protected final java.util.concurrent.atomic.AtomicReference<AbstractColumnContainer.DeletionInfo> deletionInfo
columns
protected final ISortedColumns columns
AbstractColumnContainer
protected AbstractColumnContainer(ISortedColumns columns)
delete
@Deprecated
public void delete(int localtime,
long timestamp)
- Deprecated.
delete
public void delete(AbstractColumnContainer cc2)
isMarkedForDelete
public boolean isMarkedForDelete()
- Specified by:
isMarkedForDelete
in interface IColumnContainer
getMarkedForDeleteAt
public long getMarkedForDeleteAt()
- Specified by:
getMarkedForDeleteAt
in interface IColumnContainer
getLocalDeletionTime
public int getLocalDeletionTime()
getComparator
public AbstractType getComparator()
- Specified by:
getComparator
in interface IColumnContainer
- Specified by:
getComparator
in interface IIterableColumns
maybeResetDeletionTimes
public void maybeResetDeletionTimes(int gcBefore)
addAll
public void addAll(AbstractColumnContainer cc,
Allocator allocator)
- We need to go through each column in the column container and resolve it before adding
addColumn
public void addColumn(IColumn column)
- Specified by:
addColumn
in interface IColumnContainer
addColumn
public void addColumn(IColumn column,
Allocator allocator)
- Specified by:
addColumn
in interface IColumnContainer
getColumn
public IColumn getColumn(java.nio.ByteBuffer name)
replace
public boolean replace(IColumn oldColumn,
IColumn newColumn)
- Description copied from interface:
IColumnContainer
- Replace oldColumn if represent by newColumn.
Returns true if oldColumn was present (and thus replaced)
oldColumn and newColumn should have the same name.
!NOTE! This should only be used if you know this is what you need. To
add a column such that it use the usual column resolution rules in a
thread safe manner, use addColumn.
- Specified by:
replace
in interface IColumnContainer
getColumnNames
public java.util.SortedSet<java.nio.ByteBuffer> getColumnNames()
getSortedColumns
public java.util.Collection<IColumn> getSortedColumns()
- Specified by:
getSortedColumns
in interface IColumnContainer
getReverseSortedColumns
public java.util.Collection<IColumn> getReverseSortedColumns()
remove
public void remove(java.nio.ByteBuffer columnName)
- Specified by:
remove
in interface IColumnContainer
retainAll
public void retainAll(AbstractColumnContainer container)
getColumnCount
public int getColumnCount()
isEmpty
public boolean isEmpty()
getEstimatedColumnCount
public int getEstimatedColumnCount()
- Specified by:
getEstimatedColumnCount
in interface IIterableColumns
getLiveColumnCount
public int getLiveColumnCount()
iterator
public java.util.Iterator<IColumn> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<IColumn>
hasExpiredTombstones
public boolean hasExpiredTombstones(int gcBefore)
- Specified by:
hasExpiredTombstones
in interface IColumnContainer
Copyright © 2011 The Apache Software Foundation