Package org.apache.cassandra.db.memtable
Interface Memtable.FlushablePartitionSet<P extends Partition>
-
- All Superinterfaces:
java.lang.Iterable<P>
,SSTableWriter.SSTableSizeParameters
- All Known Implementing Classes:
AbstractMemtable.AbstractFlushablePartitionSet
- Enclosing interface:
- Memtable
public static interface Memtable.FlushablePartitionSet<P extends Partition> extends java.lang.Iterable<P>, SSTableWriter.SSTableSizeParameters
A collection of partitions for flushing plus some information required for writing an sstable. Note that the listed entries must conform with the specified metadata. In particular, if the memtable is still being written to, care must be taken to not list newer items as they may violate the bounds collected by the encoding stats or refer to columns that don't exist in the collected columns set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RegularAndStaticColumns
columns()
The set of all columns that have been writtenCommitLogPosition
commitLogLowerBound()
The commit log position at the time that this memtable was createdCommitLogPosition
commitLogUpperBound()
The commit log position at the time that this memtable was switched outEncodingStats
encodingStats()
Statistics required for writing an sstable efficientlyPartitionPosition
from()
default boolean
isEmpty()
Memtable
memtable()
default TableMetadata
metadata()
PartitionPosition
to()
-
Methods inherited from interface org.apache.cassandra.io.sstable.format.SSTableWriter.SSTableSizeParameters
dataSize, partitionCount, partitionKeysSize
-
-
-
-
Method Detail
-
memtable
Memtable memtable()
-
from
PartitionPosition from()
-
to
PartitionPosition to()
-
commitLogLowerBound
CommitLogPosition commitLogLowerBound()
The commit log position at the time that this memtable was created
-
commitLogUpperBound
CommitLogPosition commitLogUpperBound()
The commit log position at the time that this memtable was switched out
-
columns
RegularAndStaticColumns columns()
The set of all columns that have been written
-
encodingStats
EncodingStats encodingStats()
Statistics required for writing an sstable efficiently
-
metadata
default TableMetadata metadata()
-
isEmpty
default boolean isEmpty()
-
-