Class CompressionInfoComponent
java.lang.Object
org.apache.cassandra.io.sstable.format.CompressionInfoComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionMetadataload(Descriptor descriptor) static CompressionMetadataloadIfExists(Descriptor descriptor) static CompressionMetadatamaybeLoad(Descriptor descriptor, Set<Component> components) static voidverifyCompressionInfoExistenceIfApplicable(Descriptor descriptor, Set<Component> actualComponents) Best-effort checking to verify the expected compression info component exists, according to the TOC file.
-
Constructor Details
-
CompressionInfoComponent
public CompressionInfoComponent()
-
-
Method Details
-
maybeLoad
-
loadIfExists
-
load
-
verifyCompressionInfoExistenceIfApplicable
public static void verifyCompressionInfoExistenceIfApplicable(Descriptor descriptor, Set<Component> actualComponents) throws CorruptSSTableException, FSReadError Best-effort checking to verify the expected compression info component exists, according to the TOC file. The verification depends on the existence of TOC file. If absent, the verification is skipped.- Parameters:
descriptor-actualComponents- actual components listed from the file system.- Throws:
CorruptSSTableException- if TOC expects compression info but not found from disk.FSReadError- if unable to read from TOC file.
-