Package org.apache.cassandra.db.memtable
Class AbstractMemtable
java.lang.Object
org.apache.cassandra.db.memtable.AbstractMemtable
- All Implemented Interfaces:
Comparable<Memtable>,CellSourceIdentifier,Memtable,UnfilteredSource
- Direct Known Subclasses:
AbstractMemtableWithCommitlog
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected static classprotected static classNested classes/interfaces inherited from interface org.apache.cassandra.db.memtable.Memtable
Memtable.Factory, Memtable.FlushablePartitionSet<P extends Partition>, Memtable.LastCommitLogPosition, Memtable.MemoryUsage, Memtable.Owner -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractMemtable.ColumnsCollectorprotected final AtomicLongprotected TableMetadataRefprotected AtomicLongprotected AtomicLongprotected final AbstractMemtable.StatsCollectorFields inherited from interface org.apache.cassandra.db.memtable.Memtable
NO_MIN_TIMESTAMP -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMemtable(TableMetadataRef metadataRef) AbstractMemtable(TableMetadataRef metadataRef, long minTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionlongMinimum local deletion time in the memtablelongMinimum timestamp of all stored datametadata()The table's definition metadata.longNumber of "operations" (in the sense defined inPartitionUpdate.operationCount()) the memtable has executed.setFlushTransaction(LifecycleTransaction flushTransaction) protected static voidupdateMin(AtomicInteger minTracker, int newValue) protected static voidupdateMin(AtomicLong minTracker, long newValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.CellSourceIdentifier
isEqualSourceMethods inherited from interface org.apache.cassandra.db.memtable.Memtable
accepts, addMemoryUsageTo, compareTo, discard, getApproximateCommitLogLowerBound, getCommitLogLowerBound, getFinalCommitLogUpperBound, getFlushSet, getLiveDataSize, isClean, localRangesUpdated, markExtraOffHeapUsed, markExtraOnHeapUsed, mayContainDataBefore, metadataUpdated, partitionCount, performSnapshot, put, shouldSwitch, switchOutMethods inherited from interface org.apache.cassandra.db.rows.UnfilteredSource
partitionIterator, rowIterator, rowIterator
-
Field Details
-
currentOperations
-
columnsCollector
-
statsCollector
-
minTimestamp
-
minLocalDeletionTime
-
metadata
-
-
Constructor Details
-
AbstractMemtable
-
AbstractMemtable
-
-
Method Details
-
metadata
Description copied from interface:MemtableThe table's definition metadata. Note that this tracks the current state of the table and is not necessarily the same as what was used to create the memtable. -
operationCount
public long operationCount()Description copied from interface:MemtableNumber of "operations" (in the sense defined inPartitionUpdate.operationCount()) the memtable has executed.- Specified by:
operationCountin interfaceMemtable
-
getMinTimestamp
public long getMinTimestamp()Description copied from interface:UnfilteredSourceMinimum timestamp of all stored data- Specified by:
getMinTimestampin interfaceUnfilteredSource
-
getMinLocalDeletionTime
public long getMinLocalDeletionTime()Description copied from interface:UnfilteredSourceMinimum local deletion time in the memtable- Specified by:
getMinLocalDeletionTimein interfaceUnfilteredSource
-
updateMin
-
updateMin
-
getFlushTransaction
- Specified by:
getFlushTransactionin interfaceMemtable
-
setFlushTransaction
- Specified by:
setFlushTransactionin interfaceMemtable
-