Class FileScanFramework.FileReaderFactory
java.lang.Object
org.apache.drill.exec.physical.impl.scan.file.FileScanFramework.FileReaderFactory
- All Implemented Interfaces:
ManagedScanFramework.ReaderFactory
- Direct Known Subclasses:
HDF5FormatPlugin.HDF5ReaderFactory
- Enclosing class:
- FileScanFramework
public abstract static class FileScanFramework.FileReaderFactory
extends Object
implements ManagedScanFramework.ReaderFactory
Iterates over the splits for the present scan. For each, creates a
new reader. The file framework passes the file split (and the Drill
file system) in via the schema negotiator at open time. This protocol
makes clear that the constructor for the reader should do nothing;
work should be done in the open() call.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(ManagedScanFramework baseFramework) protected Optional<FileScanFramework>
abstract ManagedReader<? extends FileScanFramework.FileSchemaNegotiator>
ManagedReader<? extends SchemaNegotiator>
next()
-
Constructor Details
-
FileReaderFactory
public FileReaderFactory()
-
-
Method Details
-
bind
- Specified by:
bind
in interfaceManagedScanFramework.ReaderFactory
-
next
- Specified by:
next
in interfaceManagedScanFramework.ReaderFactory
-
errorContext
-
newReader
-
fileFramework
- Returns:
- FileScanFramework or empty object in case it is not binded yet with
bind(ManagedScanFramework)
-