protected class FileOperations.OpenReaderOperation extends FileOperations.FileReaderOperation<FileOperations.OpenReaderOperation> implements FileOperations.OpenReaderOperationBuilder
Modifier | Constructor and Description |
---|---|
protected |
FileOperations.OpenReaderOperation() |
Modifier and Type | Method and 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.
|
getDataCache, getIndexCache, withBlockCache, withDataCache, withIndexCache
getRateLimiter, withRateLimiter
forFile, forFile, getConfiguration, getFilename, getFileSystem, getTableConfiguration, inFileSystem, setConfiguration, setFilename, validate, withTableConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withBlockCache, withDataCache, withIndexCache
withRateLimiter
forFile, forFile
inFileSystem
withTableConfiguration
protected FileOperations.OpenReaderOperation()
public FileOperations.OpenReaderOperation seekToBeginning()
seekToBeginning(true)
.seekToBeginning
in interface FileOperations.OpenReaderOperationBuilder
public FileOperations.OpenReaderOperation seekToBeginning(boolean seekToBeginning)
seekToBeginning
in interface FileOperations.OpenReaderOperationBuilder
public boolean isSeekToBeginning()
public FileSKVIterator build() throws IOException
build
in interface FileOperations.OpenReaderOperationBuilder
IOException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.