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
Nested Classes -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.scan.v3.lifecycle.SchemaNegotiatorImpl
baseErrorContext, batchSize, isSchemaComplete, readerErrorContext, readerLifecycle, readerSchema -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfile()Gives the file description which holds the Drill file system, split, file work and format-specific properties.newReader(ReaderFactory<?> readerFactory) protected voidMethods 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, userNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:FileSchemaNegotiatorGives 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:
filein interfaceFileSchemaNegotiator
-
newReader
public ManagedReader newReader(ReaderFactory<?> readerFactory) throws ManagedReader.EarlyEofException - Overrides:
newReaderin classSchemaNegotiatorImpl- Throws:
ManagedReader.EarlyEofException
-
implicitColumnsLoader
- Overrides:
implicitColumnsLoaderin classSchemaNegotiatorImpl
-
onEndBatch
protected void onEndBatch()- Overrides:
onEndBatchin classSchemaNegotiatorImpl
-