Class FileSchemaNegotiatorImpl
java.lang.Object
org.apache.drill.exec.physical.impl.scan.v3.lifecycle.SchemaNegotiatorImpl
org.apache.drill.exec.physical.impl.scan.v3.file.FileSchemaNegotiatorImpl
- All Implemented Interfaces:
FileSchemaNegotiator
,SchemaNegotiator
Implementation of the file-level schema negotiator which holds the
file split which the reader is to process. This class presents the
split in both Hadoop and Drill formats. Adds the file name to the
error context.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.scan.v3.lifecycle.SchemaNegotiatorImpl
baseErrorContext, batchSize, isSchemaComplete, readerErrorContext, readerLifecycle, readerSchema
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
file()
Gives the file description which holds the Drill file system, split, file work and format-specific properties.newReader
(ReaderFactory<?> readerFactory) protected void
Methods inherited from class org.apache.drill.exec.physical.impl.scan.v3.lifecycle.SchemaNegotiatorImpl
batchSize, build, context, errorContext, inputSchema, isProjectionEmpty, isSchemaComplete, parentErrorContext, projectionFor, providedSchema, schemaIsComplete, setErrorContext, tableSchema, tableSchema, userName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.physical.impl.scan.v3.SchemaNegotiator
batchSize, build, context, errorContext, inputSchema, isProjectionEmpty, parentErrorContext, projectionFor, providedSchema, schemaIsComplete, setErrorContext, tableSchema, tableSchema, userName
-
Constructor Details
-
FileSchemaNegotiatorImpl
-
-
Method Details
-
bindSplit
-
file
Description copied from interface:FileSchemaNegotiator
Gives the file description which holds the Drill file system, split, file work and format-specific properties. Can open the file and provides information used to populate implicit columns.- Specified by:
file
in interfaceFileSchemaNegotiator
-
newReader
public ManagedReader newReader(ReaderFactory<?> readerFactory) throws ManagedReader.EarlyEofException - Overrides:
newReader
in classSchemaNegotiatorImpl
- Throws:
ManagedReader.EarlyEofException
-
implicitColumnsLoader
- Overrides:
implicitColumnsLoader
in classSchemaNegotiatorImpl
-
onEndBatch
protected void onEndBatch()- Overrides:
onEndBatch
in classSchemaNegotiatorImpl
-