Package org.apache.cassandra.index.sai
Class SSTableContextManager
java.lang.Object
org.apache.cassandra.index.sai.SSTableContextManager
Manages per-sstable
SSTableContexts for StorageAttachedIndexGroup-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidrelease(Collection<SSTableReader> toRelease) intsize()update(Collection<SSTableReader> removed, Iterable<SSTableReader> added, IndexValidation validation) InitializeSSTableContexts if they are not already initialized.
-
Constructor Details
-
SSTableContextManager
public SSTableContextManager()
-
-
Method Details
-
update
public Pair<Set<SSTableContext>,Set<SSTableReader>> update(Collection<SSTableReader> removed, Iterable<SSTableReader> added, IndexValidation validation) InitializeSSTableContexts if they are not already initialized.- Parameters:
removed- SSTables being removedadded- SSTables being addedvalidation- Controls how indexes should be validated- Returns:
- a set of contexts for SSTables with valid per-SSTable components, and a set of SSTables with invalid or missing components
-
release
-
size
public int size() -
clear
public void clear()
-