Interface SSTableFormat<R extends SSTableReader,W extends SSTableWriter>
- All Known Implementing Classes:
AbstractSSTableFormat,BigFormat,BtiFormat
public interface SSTableFormat<R extends SSTableReader,W extends SSTableWriter>
Provides the accessors to data on disk.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfacestatic interfaceSSTableFormat.KeyCacheValueSerializer<R extends SSTableReader,T extends AbstractRowIndexEntry> static interfaceSSTableFormat.SSTableReaderFactory<R extends SSTableReader,B extends SSTableReader.Builder<R, B>> static interfaceSSTableFormat.SSTableWriterFactory<W extends SSTableWriter,B extends SSTableWriter.Builder<W, B>> -
Method Summary
Modifier and TypeMethodDescriptionAll the components that the writter can produce when saving an sstable, as well as all the components that the reader can read.Returns components required by offline compaction tasks - like splitting sstables.voiddelete(Descriptor descriptor) Deletes the existing components of the sstables represented by the provided descriptor.voiddeleteOrphanedComponents(Descriptor descriptor, Set<Component> components) Returns a set of components that can be automatically generated when loading sstable and thus are not mandatory.getScrubber(ColumnFamilyStore cfs, LifecycleTransaction transaction, OutputHandler outputHandler, IScrubber.Options options) Returns a new scrubber for an sstable.getVersion(String version) Returns a set of the components that can be changed after an sstable was written.name()Returns the components which should be selected for upload by the sstable loader.
-
Method Details
-
name
String name() -
getLatestVersion
Version getLatestVersion() -
getVersion
-
getWriterFactory
SSTableFormat.SSTableWriterFactory<W,?> getWriterFactory() -
getReaderFactory
SSTableFormat.SSTableReaderFactory<R,?> getReaderFactory() -
allComponents
All the components that the writter can produce when saving an sstable, as well as all the components that the reader can read. -
-
batchComponents
Returns components required by offline compaction tasks - like splitting sstables. -
uploadComponents
Returns the components which should be selected for upload by the sstable loader. -
mutableComponents
Returns a set of the components that can be changed after an sstable was written. -
generatedOnLoadComponents
Returns a set of components that can be automatically generated when loading sstable and thus are not mandatory. -
getKeyCacheValueSerializer
SSTableFormat.KeyCacheValueSerializer<R,?> getKeyCacheValueSerializer() -
getScrubber
IScrubber getScrubber(ColumnFamilyStore cfs, LifecycleTransaction transaction, OutputHandler outputHandler, IScrubber.Options options) Returns a new scrubber for an sstable. Note that the transaction must contain only one reader and the reader must match the provided cfs. -
getFormatSpecificMetricsProviders
MetricsProviders getFormatSpecificMetricsProviders() -
deleteOrphanedComponents
-
delete
Deletes the existing components of the sstables represented by the provided descriptor. The method is also responsible for cleaning up the in-memory resources occupied by the stuff related to that sstables, such as row key cache entries.
-