Package org.apache.accumulo.core.file
Class FileOperations.OpenReaderOperation
- 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<FileOperations.OpenReaderOperation>
-
- org.apache.accumulo.core.file.FileOperations.OpenReaderOperation
-
- All Implemented Interfaces:
FileOperations.FileAccessOperationBuilder<FileOperations.OpenReaderOperationBuilder>
,FileOperations.FileIOOperationBuilder<FileOperations.OpenReaderOperationBuilder>
,FileOperations.FileReaderOperationBuilder<FileOperations.OpenReaderOperationBuilder>
,FileOperations.NeedsFile<FileOperations.OpenReaderOperationBuilder>
,FileOperations.NeedsFileSystem<FileOperations.OpenReaderOperationBuilder>
,FileOperations.NeedsTableConfiguration<FileOperations.OpenReaderOperationBuilder>
,FileOperations.OpenReaderOperationBuilder
- Enclosing class:
- FileOperations
protected class FileOperations.OpenReaderOperation extends FileOperations.FileReaderOperation<FileOperations.OpenReaderOperation> implements FileOperations.OpenReaderOperationBuilder
Operation object for opening a full reader.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpenReaderOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSKVIterator
build()
Execute the operation, constructing the specified file reader.boolean
isSeekToBeginning()
FileOperations.OpenReaderOperation
seekToBeginning()
Seek the constructed iterator to the beginning of its domain before returning.FileOperations.OpenReaderOperation
seekToBeginning(boolean seekToBeginning)
If true, seek the constructed iterator to the beginning of its domain before returning.-
Methods inherited from class org.apache.accumulo.core.file.FileOperations.FileReaderOperation
getDataCache, getFileLenCache, getIndexCache, withBlockCache, withDataCache, withFileLenCache, withIndexCache
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.file.FileOperations.FileIOOperationBuilder
withRateLimiter
-
Methods inherited from interface org.apache.accumulo.core.file.FileOperations.FileReaderOperationBuilder
withBlockCache, withDataCache, withFileLenCache, withIndexCache
-
Methods inherited from interface org.apache.accumulo.core.file.FileOperations.NeedsFile
forFile, forFile
-
Methods inherited from interface org.apache.accumulo.core.file.FileOperations.NeedsFileSystem
inFileSystem
-
Methods inherited from interface org.apache.accumulo.core.file.FileOperations.NeedsTableConfiguration
withTableConfiguration
-
-
-
-
Method Detail
-
seekToBeginning
public FileOperations.OpenReaderOperation seekToBeginning()
Seek the constructed iterator to the beginning of its domain before returning. Equivalent toseekToBeginning(true)
.- Specified by:
seekToBeginning
in interfaceFileOperations.OpenReaderOperationBuilder
-
seekToBeginning
public FileOperations.OpenReaderOperation seekToBeginning(boolean seekToBeginning)
If true, seek the constructed iterator to the beginning of its domain before returning.- Specified by:
seekToBeginning
in interfaceFileOperations.OpenReaderOperationBuilder
-
isSeekToBeginning
public boolean isSeekToBeginning()
-
build
public FileSKVIterator build() throws IOException
Execute the operation, constructing the specified file reader.- Specified by:
build
in interfaceFileOperations.OpenReaderOperationBuilder
- Throws:
IOException
-
-