public abstract class AbstractMemtable extends java.lang.Object implements Memtable
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractMemtable.AbstractFlushablePartitionSet<P extends Partition> |
protected static class |
AbstractMemtable.ColumnsCollector |
protected static class |
AbstractMemtable.StatsCollector |
Memtable.Factory, Memtable.FlushablePartitionSet<P extends Partition>, Memtable.LastCommitLogPosition, Memtable.MemoryUsage, Memtable.Owner
Modifier and Type | Field and Description |
---|---|
protected AbstractMemtable.ColumnsCollector |
columnsCollector |
protected java.util.concurrent.atomic.AtomicLong |
currentOperations |
protected TableMetadataRef |
metadata |
protected java.util.concurrent.atomic.AtomicInteger |
minLocalDeletionTime |
protected java.util.concurrent.atomic.AtomicLong |
minTimestamp |
protected AbstractMemtable.StatsCollector |
statsCollector |
Constructor and Description |
---|
AbstractMemtable(TableMetadataRef metadataRef) |
Modifier and Type | Method and Description |
---|---|
int |
getMinLocalDeletionTime()
Minimum local deletion time in the memtable
|
long |
getMinTimestamp()
Minimum timestamp of all stored data
|
TableMetadata |
metadata()
The table's definition metadata.
|
long |
operationCount()
Number of "operations" (in the sense defined in
PartitionUpdate.operationCount() ) the memtable has
executed. |
protected static void |
updateMin(java.util.concurrent.atomic.AtomicInteger minTracker,
int newValue) |
protected static void |
updateMin(java.util.concurrent.atomic.AtomicLong minTracker,
long newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accepts, addMemoryUsageTo, compareTo, discard, getApproximateCommitLogLowerBound, getCommitLogLowerBound, getFinalCommitLogUpperBound, getFlushSet, getLiveDataSize, getMemoryUsage, isClean, localRangesUpdated, markExtraOffHeapUsed, markExtraOnHeapUsed, mayContainDataBefore, metadataUpdated, newMemoryUsage, partitionCount, performSnapshot, put, shouldSwitch, switchOut
partitionIterator, rowIterator, rowIterator
protected final java.util.concurrent.atomic.AtomicLong currentOperations
protected final AbstractMemtable.ColumnsCollector columnsCollector
protected final AbstractMemtable.StatsCollector statsCollector
protected java.util.concurrent.atomic.AtomicLong minTimestamp
protected java.util.concurrent.atomic.AtomicInteger minLocalDeletionTime
protected TableMetadataRef metadata
public AbstractMemtable(TableMetadataRef metadataRef)
public TableMetadata metadata()
Memtable
public long operationCount()
Memtable
PartitionUpdate.operationCount()
) the memtable has
executed.operationCount
in interface Memtable
public long getMinTimestamp()
UnfilteredSource
getMinTimestamp
in interface UnfilteredSource
public int getMinLocalDeletionTime()
UnfilteredSource
getMinLocalDeletionTime
in interface UnfilteredSource
protected static void updateMin(java.util.concurrent.atomic.AtomicLong minTracker, long newValue)
protected static void updateMin(java.util.concurrent.atomic.AtomicInteger minTracker, int newValue)
Copyright © 2009-2022 The Apache Software Foundation