Class IndexSummaryComponent
java.lang.Object
org.apache.cassandra.io.sstable.format.big.IndexSummaryComponent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexSummaryComponent(IndexSummary indexSummary, DecoratedKey first, DecoratedKey last) -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexSummaryComponentload(File summaryFile, TableMetadata metadata) Load index summary, first key and last key from Summary.db file if it exists.static Pair<DecoratedKey,DecoratedKey> loadFirstAndLastKey(File summaryFile, IPartitioner partitioner) static IndexSummaryComponentloadOrDeleteCorrupted(File summaryFile, TableMetadata metadata) voidSave index summary to Summary.db file.
-
Field Details
-
indexSummary
-
first
-
last
-
-
Constructor Details
-
IndexSummaryComponent
-
-
Method Details
-
loadFirstAndLastKey
public static Pair<DecoratedKey,DecoratedKey> loadFirstAndLastKey(File summaryFile, IPartitioner partitioner) throws IOException - Throws:
IOException
-
load
public static IndexSummaryComponent load(File summaryFile, TableMetadata metadata) throws IOException Load index summary, first key and last key from Summary.db file if it exists.if loaded index summary has different index interval from current value stored in schema, then Summary.db file will be deleted and need to be rebuilt.
- Throws:
IOException
-
loadOrDeleteCorrupted
public static IndexSummaryComponent loadOrDeleteCorrupted(File summaryFile, TableMetadata metadata) throws IOException - Throws:
IOException
-
save
Save index summary to Summary.db file.- Throws:
IOException
-