public class FileOperations.ReaderBuilder extends FileOperations.FileHelper implements FileOperations.ReaderTableConfiguration
FileOperations
which perform reads.Constructor and Description |
---|
ReaderBuilder() |
Modifier and Type | Method and Description |
---|---|
FileSKVIterator |
build()
Execute the operation, constructing the specified file reader.
|
FileOperations.ReaderTableConfiguration |
forFile(String filename,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration fsConf,
CryptoService cs) |
FileOperations.ReaderBuilder |
seekToBeginning()
Seek the constructed iterator to the beginning of its domain before returning.
|
FileOperations.ReaderBuilder |
seekToBeginning(boolean seekToBeginning)
If true, seek the constructed iterator to the beginning of its domain before returning.
|
FileOperations.ReaderBuilder |
withBlockCache(BlockCache dataCache,
BlockCache indexCache)
(Optional) Set the block cache pair to be used to optimize reads within the constructed
reader.
|
FileOperations.ReaderBuilder |
withDataCache(BlockCache dataCache)
(Optional) set the data cache to be used to optimize reads within the constructed reader.
|
FileOperations.ReaderBuilder |
withFileLenCache(com.google.common.cache.Cache<String,Long> fileLenCache) |
FileOperations.ReaderBuilder |
withIndexCache(BlockCache indexCache)
(Optional) set the index cache to be used to optimize reads within the constructed reader.
|
FileOperations.ReaderBuilder |
withRateLimiter(RateLimiter rateLimiter) |
FileOperations.ReaderBuilder |
withTableConfiguration(AccumuloConfiguration tableConfiguration) |
cryptoService, filename, fs, fsConf, getTableConfiguration, rateLimiter, tableConfiguration, toIndexReaderBuilderOptions, toReaderBuilderOptions, toScanReaderBuilderOptions, toWriterBuilderOptions
public FileOperations.ReaderTableConfiguration forFile(String filename, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration fsConf, CryptoService cs)
public FileOperations.ReaderBuilder withTableConfiguration(AccumuloConfiguration tableConfiguration)
withTableConfiguration
in interface FileOperations.ReaderTableConfiguration
public FileOperations.ReaderBuilder withBlockCache(BlockCache dataCache, BlockCache indexCache)
public FileOperations.ReaderBuilder withDataCache(BlockCache dataCache)
public FileOperations.ReaderBuilder withIndexCache(BlockCache indexCache)
public FileOperations.ReaderBuilder withFileLenCache(com.google.common.cache.Cache<String,Long> fileLenCache)
public FileOperations.ReaderBuilder withRateLimiter(RateLimiter rateLimiter)
public FileOperations.ReaderBuilder seekToBeginning()
seekToBeginning(true)
.public FileOperations.ReaderBuilder seekToBeginning(boolean seekToBeginning)
public FileSKVIterator build() throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.