Class FileReaderFactory
java.lang.Object
org.apache.drill.exec.physical.impl.scan.v3.file.FileReaderFactory
- All Implemented Interfaces:
ReaderFactory<FileSchemaNegotiator>
- Direct Known Subclasses:
HDF5FormatPlugin.HDF5ReaderFactory,ShpFormatPlugin.ShpReaderFactory,XMLFormatPlugin.XMLReaderFactory
public abstract class FileReaderFactory
extends Object
implements ReaderFactory<FileSchemaNegotiator>
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 to the constructor which
should open the file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbind(FileScanLifecycle scan) booleanhasNext()abstract ManagedReadernewReader(FileSchemaNegotiator negotiator) next(FileSchemaNegotiator negotiator)
-
Constructor Details
-
FileReaderFactory
public FileReaderFactory()
-
-
Method Details
-
bind
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceReaderFactory<FileSchemaNegotiator>
-
next
- Specified by:
nextin interfaceReaderFactory<FileSchemaNegotiator>- Throws:
ManagedReader.EarlyEofException
-
newReader
public abstract ManagedReader newReader(FileSchemaNegotiator negotiator) throws ManagedReader.EarlyEofException - Throws:
ManagedReader.EarlyEofException
-