Interface SSTableReadsListener
-
public interface SSTableReadsListenerListener for receiving notifications associated with reading SSTables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSSTableReadsListener.SelectionReasonThe reasons for selecting an SSTablestatic classSSTableReadsListener.SkippingReasonThe reasons for skipping an SSTable
-
Field Summary
Fields Modifier and Type Field Description static SSTableReadsListenerNOOP_LISTENERListener that does nothing.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonScanningStarted(SSTableReader sstable)Handles notification that the specified SSTable is being scanned during a partition range query.default voidonSSTableSelected(SSTableReader sstable, RowIndexEntry<?> indexEntry, SSTableReadsListener.SelectionReason reason)Handles notification that the specified SSTable has been selected during a single partition query.default voidonSSTableSkipped(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.
-
-