Interface SSTableFormat.SSTableReaderFactory<R extends SSTableReader,B extends SSTableReader.Builder<R,B>>
- Enclosing interface:
- SSTableFormat<R extends SSTableReader,
W extends SSTableWriter>
public static interface SSTableFormat.SSTableReaderFactory<R extends SSTableReader,B extends SSTableReader.Builder<R,B>>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder(Descriptor descriptor) A simple builder which creates an instnace ofSSTableReaderwith the provided parameters.loadingBuilder(Descriptor descriptor, TableMetadataRef tableMetadataRef, Set<Component> components) A builder which opens/loads all the required resources upon execution ofSSTableReaderLoadingBuilder.build(SSTable.Owner, boolean, boolean)and passed them to the created reader instance.readKeyRange(Descriptor descriptor, IPartitioner partitioner) Retrieves a key range for the given sstable at the lowest cost - that is, without opening all sstables files if possible.
-
Method Details
-
builder
A simple builder which creates an instnace ofSSTableReaderwith the provided parameters. It expects that all the required resources to be opened/loaded externally by the caller.The builder is expected to perform basic validation of the provided parameters.
-
loadingBuilder
SSTableReaderLoadingBuilder<R,B> loadingBuilder(Descriptor descriptor, TableMetadataRef tableMetadataRef, Set<Component> components) A builder which opens/loads all the required resources upon execution ofSSTableReaderLoadingBuilder.build(SSTable.Owner, boolean, boolean)and passed them to the created reader instance. If the creation ofSSTableReaderfails, no resources should be left opened.The builder is expected to perform basic validation of the provided parameters.
-
readKeyRange
Pair<DecoratedKey,DecoratedKey> readKeyRange(Descriptor descriptor, IPartitioner partitioner) throws IOException Retrieves a key range for the given sstable at the lowest cost - that is, without opening all sstables files if possible.- Throws:
IOException
-
getReaderClass
-