Class SortedTableVerifier<R extends SSTableReaderWithFilter>
java.lang.Object
org.apache.cassandra.io.sstable.format.SortedTableVerifier<R>
- All Implemented Interfaces:
Closeable,AutoCloseable,IVerifier
- Direct Known Subclasses:
BigTableVerifier,BtiTableVerifier
public abstract class SortedTableVerifier<R extends SSTableReaderWithFilter>
extends Object
implements IVerifier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse the fact that check(...) is called with sorted tokens - we keep a pointer in to the normalized ranges and only bump the pointer if the key given is out of range.protected static classprotected static classNested classes/interfaces inherited from interface org.apache.cassandra.io.sstable.IVerifier
IVerifier.Options -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ColumnFamilyStoreprotected final RandomAccessReaderprotected final ReadWriteLockprotected intprotected final booleanprotected final IVerifier.Optionsprotected final OutputHandlerprotected final Rprotected final Function<String,? extends Collection<Range<Token>>> Given a keyspace, return the set of local and pending token ranges.protected final SortedTableVerifier.VerifyInfo -
Constructor Summary
ConstructorsConstructorDescriptionSortedTableVerifier(ColumnFamilyStore cfs, R sstable, OutputHandler outputHandler, boolean isOffline, IVerifier.Options options) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voiddeserializeBloomFilter(SSTableReader sstable) protected voidmarkAndThrow(Throwable cause) protected voidmarkAndThrow(Throwable cause, boolean mutateRepaired) voidverify()protected voidprotected booleanprotected voidprotected intprotected abstract voidverifyPartition(DecoratedKey key, UnfilteredRowIterator iterator) protected voidprotected voidprotected void
-
Field Details
-
cfs
-
sstable
-
fileAccessLock
-
dataFile
-
verifyInfo
-
options
-
isOffline
protected final boolean isOffline -
tokenLookup
Given a keyspace, return the set of local and pending token ranges. By defaultStorageService.getLocalAndPendingRanges(String)is expected, but for the standalone verifier case we can't use that, so this is here to allow the CLI to provide the token ranges. -
goodRows
protected int goodRows -
outputHandler
-
-
Constructor Details
-
SortedTableVerifier
public SortedTableVerifier(ColumnFamilyStore cfs, R sstable, OutputHandler outputHandler, boolean isOffline, IVerifier.Options options)
-
-
Method Details
-
deserializeBloomFilter
- Throws:
IOException
-
getVerifyInfo
- Specified by:
getVerifyInfoin interfaceIVerifier
-
markAndThrow
-
markAndThrow
-
verify
public void verify() -
verifyBloomFilter
protected void verifyBloomFilter() -
verifySSTableMetadata
protected void verifySSTableMetadata() -
verifySSTableVersion
protected void verifySSTableVersion() -
verifyOwnedRanges
protected int verifyOwnedRanges() -
verifyDigest
protected boolean verifyDigest() -
verifySSTable
protected void verifySSTable() -
verifyPartition
-
verifyIndex
protected void verifyIndex() -
close
public void close()
-