Package org.apache.accumulo.core.file
Class FileOperations.OpenScanReaderOperation
- 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.OpenScanReaderOperation>
-
- org.apache.accumulo.core.file.FileOperations.OpenScanReaderOperation
-
- All Implemented Interfaces:
FileOperations.FileAccessOperationBuilder<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.FileIOOperationBuilder<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.FileReaderOperationBuilder<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.NeedsFile<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.NeedsFileSystem<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.NeedsRange<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.NeedsTableConfiguration<FileOperations.OpenScanReaderOperationBuilder>
,FileOperations.OpenScanReaderOperationBuilder
- Enclosing class:
- FileOperations
protected class FileOperations.OpenScanReaderOperation extends FileOperations.FileReaderOperation<FileOperations.OpenScanReaderOperation> implements FileOperations.OpenScanReaderOperationBuilder
Operation object for opening a scan reader.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpenScanReaderOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSKVIterator
build()
Execute the operation, constructing a scan iterator.Set<ByteSequence>
getColumnFamilies()
The column families which this reader should scan.Range
getRange()
The range over which this reader should scan.boolean
isRangeInclusive()
FileOperations.OpenScanReaderOperation
overRange(Range range, Set<ByteSequence> columnFamilies, boolean inclusive)
Set the range over which the constructed iterator will search.protected void
validate()
Check for null parameters.-
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, 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
-
overRange
public FileOperations.OpenScanReaderOperation overRange(Range range, Set<ByteSequence> columnFamilies, boolean inclusive)
Set the range over which the constructed iterator will search.- Specified by:
overRange
in interfaceFileOperations.NeedsRange<FileOperations.OpenScanReaderOperationBuilder>
-
getRange
public Range getRange()
The range over which this reader should scan.
-
getColumnFamilies
public Set<ByteSequence> getColumnFamilies()
The column families which this reader should scan.
-
isRangeInclusive
public boolean isRangeInclusive()
-
validate
protected void validate()
Description copied from class:FileOperations.FileAccessOperation
Check for null parameters.- Overrides:
validate
in classFileOperations.FileAccessOperation<FileOperations.OpenScanReaderOperation>
-
build
public FileSKVIterator build() throws IOException
Execute the operation, constructing a scan iterator.- Specified by:
build
in interfaceFileOperations.OpenScanReaderOperationBuilder
- Throws:
IOException
-
-