Class SortedTableScrubber<R extends SSTableReaderWithFilter>
java.lang.Object
org.apache.cassandra.io.sstable.format.SortedTableScrubber<R>
- All Implemented Interfaces:
Closeable,AutoCloseable,IScrubber,Closeable
- Direct Known Subclasses:
BigTableScrubber,BtiTableScrubber
@NotThreadSafe
public abstract class SortedTableScrubber<R extends SSTableReaderWithFilter>
extends Object
implements IScrubber
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.cassandra.io.sstable.IScrubber
IScrubber.Options, IScrubber.ScrubResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final ColumnFamilyStoreprotected final RandomAccessReaderprotected final Fileprotected intprotected final longprotected final ReadWriteLockprotected intprotected final booleanprotected final org.apache.cassandra.io.sstable.format.SortedTableScrubber.NegativeLocalDeletionInfoMetricsprotected final IScrubber.Optionsprotected final OutputHandlerprotected final SortedTableScrubber.ScrubInfoprotected final Rprotected final LifecycleTransaction -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSortedTableScrubber(ColumnFamilyStore cfs, LifecycleTransaction transaction, OutputHandler outputHandler, IScrubber.Options options) -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteOrphanedComponents(Descriptor descriptor, Set<Component> components) protected StringkeyString(DecoratedKey key) voidscrub()protected abstract voidscrubInternal(SSTableRewriter writer) protected voidthrowIfCannotContinue(DecoratedKey key, Throwable th) protected static voidprotected booleantryAppend(DecoratedKey prevKey, DecoratedKey key, SSTableRewriter writer) protected abstract UnfilteredRowIteratorwithValidation(UnfilteredRowIterator iter, String filename)
-
Field Details
-
cfs
-
transaction
-
destination
-
options
-
sstable
-
outputHandler
-
isCommutative
protected final boolean isCommutative -
expectedBloomFilterSize
protected final long expectedBloomFilterSize -
fileAccessLock
-
dataFile
-
scrubInfo
-
negativeLocalDeletionInfoMetrics
protected final org.apache.cassandra.io.sstable.format.SortedTableScrubber.NegativeLocalDeletionInfoMetrics negativeLocalDeletionInfoMetrics -
outOfOrder
-
goodPartitions
protected int goodPartitions -
badPartitions
protected int badPartitions -
emptyPartitions
protected int emptyPartitions
-
-
Constructor Details
-
SortedTableScrubber
protected SortedTableScrubber(ColumnFamilyStore cfs, LifecycleTransaction transaction, OutputHandler outputHandler, IScrubber.Options options)
-
-
Method Details
-
deleteOrphanedComponents
-
scrub
public void scrub() -
scrubInternal
- Throws:
IOException
-
withValidation
protected abstract UnfilteredRowIterator withValidation(UnfilteredRowIterator iter, String filename) -
scrubWithResult
- Specified by:
scrubWithResultin interfaceIScrubber
-
getScrubInfo
- Specified by:
getScrubInfoin interfaceIScrubber
-
keyString
-
tryAppend
-
throwIfFatal
-
throwIfCannotContinue
-