Package org.apache.accumulo.core.file
Class FileOperations.FileReaderOperation<SubclassType extends FileOperations.FileReaderOperation<SubclassType>>
- java.lang.Object
-
- org.apache.accumulo.core.file.FileOperations.FileAccessOperation<SubclassType>
-
- org.apache.accumulo.core.file.FileOperations.FileIOOperation<SubclassType>
-
- org.apache.accumulo.core.file.FileOperations.FileReaderOperation<SubclassType>
-
- Direct Known Subclasses:
FileOperations.OpenIndexOperation
,FileOperations.OpenReaderOperation
,FileOperations.OpenScanReaderOperation
- Enclosing class:
- FileOperations
protected static class FileOperations.FileReaderOperation<SubclassType extends FileOperations.FileReaderOperation<SubclassType>> extends FileOperations.FileIOOperation<SubclassType>
Options common to allFileOperations
which perform reads.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileReaderOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockCache
getDataCache()
com.google.common.cache.Cache<String,Long>
getFileLenCache()
BlockCache
getIndexCache()
SubclassType
withBlockCache(BlockCache dataCache, BlockCache indexCache)
(Optional) Set the block cache pair to be used to optimize reads within the constructed reader.SubclassType
withDataCache(BlockCache dataCache)
(Optional) set the data cache to be used to optimize reads within the constructed reader.SubclassType
withFileLenCache(com.google.common.cache.Cache<String,Long> fileLenCache)
SubclassType
withIndexCache(BlockCache indexCache)
(Optional) set the index cache to be used to optimize reads within the constructed reader.-
Methods inherited from class org.apache.accumulo.core.file.FileOperations.FileIOOperation
getRateLimiter, withRateLimiter
-
Methods inherited from class org.apache.accumulo.core.file.FileOperations.FileAccessOperation
forFile, forFile, getConfiguration, getFilename, getFileSystem, getTableConfiguration, inFileSystem, setConfiguration, setFilename, validate, withTableConfiguration
-
-
-
-
Method Detail
-
withBlockCache
public SubclassType withBlockCache(BlockCache dataCache, BlockCache indexCache)
(Optional) Set the block cache pair to be used to optimize reads within the constructed reader.
-
withDataCache
public SubclassType withDataCache(BlockCache dataCache)
(Optional) set the data cache to be used to optimize reads within the constructed reader.
-
withIndexCache
public SubclassType withIndexCache(BlockCache indexCache)
(Optional) set the index cache to be used to optimize reads within the constructed reader.
-
withFileLenCache
public SubclassType withFileLenCache(com.google.common.cache.Cache<String,Long> fileLenCache)
-
getDataCache
public BlockCache getDataCache()
-
getIndexCache
public BlockCache getIndexCache()
-
-