Class SSTableReaderWithFilter
java.lang.Object
org.apache.cassandra.io.sstable.SSTable
org.apache.cassandra.io.sstable.format.SSTableReader
org.apache.cassandra.io.sstable.format.SSTableReaderWithFilter
- All Implemented Interfaces:
Comparable<SSTableReader>,UnfilteredSource,RefCounted<SSTableReader>,SelfRefCounted<SSTableReader>
- Direct Known Subclasses:
BigTableReader,BtiTableReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSSTableReaderWithFilter.Builder<R extends SSTableReaderWithFilter,B extends SSTableReaderWithFilter.Builder<R, B>> Nested classes/interfaces inherited from class org.apache.cassandra.io.sstable.format.SSTableReader
SSTableReader.IndexesBounds, SSTableReader.InstanceTidier, SSTableReader.OpenReason, SSTableReader.Operator, SSTableReader.PartitionPositionBounds, SSTableReader.UniqueIdentifierNested classes/interfaces inherited from class org.apache.cassandra.io.sstable.SSTable
SSTable.OwnerNested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.RefCounted
RefCounted.Tidy -
Field Summary
Fields inherited from class org.apache.cassandra.io.sstable.format.SSTableReader
bounds, dfile, first, firstKeyComparator, firstKeyOrdering, header, idComparator, idReverseComparator, instanceId, isSuspect, last, lastKeyComparator, maxDataAge, maxTimestampAscending, maxTimestampDescending, openReason, sizeComparator, sstableMetadata, UNIQUE_IDENTIFIER_FACTORYFields inherited from class org.apache.cassandra.io.sstable.SSTable
chunkCache, components, compression, descriptor, ioOptions, metadata, TOMBSTONE_HISTOGRAM_BIN_SIZE, TOMBSTONE_HISTOGRAM_SPOOL_SIZE, TOMBSTONE_HISTOGRAM_TTL_ROUND_SECONDS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSSTableReaderWithFilter(SSTableReaderWithFilter.Builder<?, ?> builder, SSTable.Owner owner) -
Method Summary
Modifier and TypeMethodDescriptionabstract SSTableReaderWithFiltercloneAndReplace(IFilter filter) longlongprotected booleanbooleanThe method verifies whether the sstable may contain the provided key.protected voidnotifySelected(SSTableReadsListener.SelectionReason reason, SSTableReadsListener localListener, SSTableReader.Operator op, boolean updateStats, AbstractRowIndexEntry entry) A method to be called bySSTableReader.getPosition(PartitionPosition, Operator, boolean, SSTableReadsListener)andSSTableReader.getRowIndexEntry(PartitionPosition, Operator, boolean, SSTableReadsListener)methods when a searched key is found.protected voidnotifySkipped(SSTableReadsListener.SkippingReason reason, SSTableReadsListener localListener, SSTableReader.Operator op, boolean updateStats) A method to be called bySSTableReader.getPosition(PartitionPosition, Operator, boolean, SSTableReadsListener)andSSTableReader.getRowIndexEntry(PartitionPosition, Operator, boolean, SSTableReadsListener)methods when a searched key is not found.protected List<AutoCloseable>setupInstance(boolean trackHotness) protected final <B extends SSTableReaderWithFilter.Builder<?,B>>
BunbuildTo(B builder, boolean sharedCopy) Methods inherited from class org.apache.cassandra.io.sstable.format.SSTableReader
addTo, bytesOnDisk, cloneWithNewStart, cloneWithRestoredStart, closeInternalComponent, compareTo, createLinks, createLinks, createLinks, createLinks, equals, estimatedKeys, estimatedKeysForRanges, firstKeyBeyond, getApproximateKeyCount, getAvgColumnSetPerRow, getBounds, getCompressionMetadata, getCompressionMetadataOffHeapSize, getCompressionRatio, getCrcCheckChance, getDataChannel, getDataCreationTime, getDroppableTombstonesBefore, getEstimatedCellPerPartitionCount, getEstimatedDroppableTombstoneRatio, getEstimatedPartitionSize, getFileDataInput, getFilename, getFirst, getInterval, getKeySamples, getLast, getMaxLocalDeletionTime, getMaxTimestamp, getMaxTTL, getMinLocalDeletionTime, getMinTimestamp, getMinTTL, getPendingRepair, getPosition, getPosition, getPosition, getPosition, getPositionsForBounds, getPositionsForBoundsIterator, getPositionsForFullRange, getPositionsForRanges, getReadMeter, getRepairedAt, getRowIndexEntry, getScanner, getScanner, getScanner, getScanner, getSSTableLevel, getSSTableMetadata, getTotalBytes, getTotalColumnsSet, getTotalRows, getTotalUncompressedBytes, getVerifier, hashCode, incrementReadCount, instanceId, intersects, isEstimationInformative, isMarkedCompacted, isMarkedSuspect, isPendingRepair, isRepaired, isReplaced, isTransient, keyAtPositionFromSecondaryIndex, keyIterator, keyReader, logicalBytesOnDisk, markObsolete, markSuspect, maybeGetChecksumValidator, maybeGetDigestValidator, maybePersistSSTableReadMeter, mayHaveTombstones, moveAndOpenSSTable, mutateLevelAndReload, mutateRepairedAndReload, newSince, onDiskLength, onDiskSizeForPartitionPositions, open, open, open, open, openAll, openDataReader, openDataReader, openDataReaderForScan, openForBatch, openNoValidation, openNoValidation, overrideReadMeter, ref, releaseInMemoryComponents, reloadSSTableMetadata, resetTidying, runOnClose, runWithLock, selfRef, setCrcCheckChance, setReplaced, setup, setupOnline, shutdownBlocking, simpleIterator, stats, tokenSpaceCoverage, tryRef, trySkipFileCacheBefore, unbuildTo, uncompressedLength, unmarkSuspect, validateMethods inherited from class org.apache.cassandra.io.sstable.SSTable
addComponents, copy, decorateKey, getAllFilePaths, getColumnFamilyName, getComponents, getId, getKeyspaceName, getPartitioner, getStreamingComponents, hardlink, metadata, owner, registerComponents, rename, toString, tryComponentFromFilename, tryComponentFromFilename, tryDescriptorFromFile, unbuildTo, unregisterComponents, validateRepairedMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.rows.UnfilteredSource
partitionIterator, rowIterator, rowIterator
-
Constructor Details
-
SSTableReaderWithFilter
protected SSTableReaderWithFilter(SSTableReaderWithFilter.Builder<?, ?> builder, SSTable.Owner owner)
-
-
Method Details
-
setupInstance
- Overrides:
setupInstancein classSSTableReader
-
unbuildTo
protected final <B extends SSTableReaderWithFilter.Builder<?,B>> B unbuildTo(B builder, boolean sharedCopy) -
isPresentInFilter
-
mayContainAssumingKeyIsInRange
Description copied from class:SSTableReaderThe method verifies whether the sstable may contain the provided key. The method does approximation using Bloom filter if it is present and if it is not, performs accurate check in the index.- Specified by:
mayContainAssumingKeyIsInRangein classSSTableReader
-
notifySelected
protected void notifySelected(SSTableReadsListener.SelectionReason reason, SSTableReadsListener localListener, SSTableReader.Operator op, boolean updateStats, AbstractRowIndexEntry entry) Description copied from class:SSTableReaderA method to be called bySSTableReader.getPosition(PartitionPosition, Operator, boolean, SSTableReadsListener)andSSTableReader.getRowIndexEntry(PartitionPosition, Operator, boolean, SSTableReadsListener)methods when a searched key is found. It adds a trace message and notify the provided listener.- Overrides:
notifySelectedin classSSTableReader
-
notifySkipped
protected void notifySkipped(SSTableReadsListener.SkippingReason reason, SSTableReadsListener localListener, SSTableReader.Operator op, boolean updateStats) Description copied from class:SSTableReaderA method to be called bySSTableReader.getPosition(PartitionPosition, Operator, boolean, SSTableReadsListener)andSSTableReader.getRowIndexEntry(PartitionPosition, Operator, boolean, SSTableReadsListener)methods when a searched key is not found. It adds a trace message and notify the provided listener.- Overrides:
notifySkippedin classSSTableReader
-
getFilterTracker
-
getFilterSerializedSize
public long getFilterSerializedSize() -
getFilterOffHeapSize
public long getFilterOffHeapSize() -
cloneAndReplace
-