Package org.apache.cassandra.db.memtable
Interface Memtable.FlushablePartitionSet<P extends Partition>
- All Superinterfaces:
Iterable<P>,SSTableWriter.SSTableSizeParameters
- All Known Implementing Classes:
AbstractMemtable.AbstractFlushablePartitionSet
- Enclosing interface:
- Memtable
public static interface Memtable.FlushablePartitionSet<P extends Partition>
extends 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
Modifier and TypeMethodDescriptioncolumns()The set of all columns that have been writtenThe commit log position at the time that this memtable was createdThe commit log position at the time that this memtable was switched outStatistics required for writing an sstable efficientlyfrom()default booleanisEmpty()memtable()default TableMetadatametadata()to()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.cassandra.io.sstable.format.SSTableWriter.SSTableSizeParameters
dataSize, partitionCount, partitionKeysSize
-
Method Details
-
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
-
isEmpty
default boolean isEmpty()
-