Class ColumnsScanFramework
java.lang.Object
org.apache.drill.exec.physical.impl.scan.framework.ManagedScanFramework
org.apache.drill.exec.physical.impl.scan.file.FileScanFramework
org.apache.drill.exec.physical.impl.scan.columns.ColumnsScanFramework
- All Implemented Interfaces:
ScanOperatorEvents
Scan framework for a file that supports the special "columns" column.
The logic here is a bit tricky. The CSV (really, "compliant text") reader operates in multiple modes. If a header is required, then the columns array is not allowed. If the header is not loaded, then the columns array must be used.
This class combines the above semantics with the projection list from the query. It handles things like two appearances of the unadorned columns identifier, the use of the columns identifier when it is not allowed, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classImplementation of the columns array schema negotiator.Nested classes/interfaces inherited from class org.apache.drill.exec.physical.impl.scan.file.FileScanFramework
FileScanFramework.FileReaderFactory, FileScanFramework.FileRowSetContext, FileScanFramework.FileScanBuilder, FileScanFramework.FileSchemaNegotiator, FileScanFramework.FileSchemaNegotiatorImplNested classes/interfaces inherited from class org.apache.drill.exec.physical.impl.scan.framework.ManagedScanFramework
ManagedScanFramework.ReaderFactory, ManagedScanFramework.ScanFrameworkBuilder -
Field Summary
FieldsFields inherited from class org.apache.drill.exec.physical.impl.scan.framework.ManagedScanFramework
builder, context, readerFactory, scanOrchestrator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TupleMetadataprotected voidprotected SchemaNegotiatorImplMethods inherited from class org.apache.drill.exec.physical.impl.scan.file.FileScanFramework
fileSystem, nextSplit, open, optionsMethods inherited from class org.apache.drill.exec.physical.impl.scan.framework.ManagedScanFramework
bind, close, context, errorContext, nextReader, outputSchema, scanOrchestrator
-
Field Details
-
COLUMNS_COL
- See Also:
-
columnsArrayManager
-
-
Constructor Details
-
ColumnsScanFramework
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classFileScanFramework
-
newNegotiator
- Overrides:
newNegotiatorin classFileScanFramework
-
columnsSchema
-