Interface SSTableReadsListener
-
public interface SSTableReadsListener
Listener for receiving notifications associated with reading SSTables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SSTableReadsListener.SelectionReason
The reasons for selecting an SSTablestatic class
SSTableReadsListener.SkippingReason
The reasons for skipping an SSTable
-
Field Summary
Fields Modifier and Type Field Description static SSTableReadsListener
NOOP_LISTENER
Listener that does nothing.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onScanningStarted(SSTableReader sstable)
Handles notification that the specified SSTable is being scanned during a partition range query.default void
onSSTableSelected(SSTableReader sstable, RowIndexEntry<?> indexEntry, SSTableReadsListener.SelectionReason reason)
Handles notification that the specified SSTable has been selected during a single partition query.default void
onSSTableSkipped(SSTableReader sstable, SSTableReadsListener.SkippingReason reason)
Handles notification that the specified SSTable has been skipped during a single partition query.
-
-
-
Field Detail
-
NOOP_LISTENER
static final SSTableReadsListener NOOP_LISTENER
Listener that does nothing.
-
-
Method Detail
-
onSSTableSkipped
default void onSSTableSkipped(SSTableReader sstable, SSTableReadsListener.SkippingReason reason)
Handles notification that the specified SSTable has been skipped during a single partition query.- Parameters:
sstable
- the SSTable readerreason
- the reason for which the SSTable has been skipped
-
onSSTableSelected
default void onSSTableSelected(SSTableReader sstable, RowIndexEntry<?> indexEntry, SSTableReadsListener.SelectionReason reason)
Handles notification that the specified SSTable has been selected during a single partition query.- Parameters:
sstable
- the SSTable readerindexEntry
- the index entryreason
- the reason for which the SSTable has been selected
-
onScanningStarted
default void onScanningStarted(SSTableReader sstable)
Handles notification that the specified SSTable is being scanned during a partition range query.- Parameters:
sstable
- the SSTable reader of the SSTable being scanned.
-
-