Package org.apache.cassandra.io.sstable
Interface SSTableReadsListener
public interface SSTableReadsListener
Listener for receiving notifications associated with reading SSTables.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe reasons for selecting an SSTablestatic enumThe reasons for skipping an SSTable -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidonScanningStarted(SSTableReader sstable) Handles notification that the specified SSTable is being scanned during a partition range query.default voidonSSTableSelected(SSTableReader sstable, 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 Details
-
NOOP_LISTENER
Listener that does nothing.
-
-
Method Details
-
onSSTableSkipped
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
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
Handles notification that the specified SSTable is being scanned during a partition range query.- Parameters:
sstable- the SSTable reader of the SSTable being scanned.
-