Class MetadataColumn
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
org.apache.drill.exec.physical.impl.scan.file.MetadataColumn
- All Implemented Interfaces:
ColumnProjection
,ConstantColumnLoader.ConstantColumnSpec
- Direct Known Subclasses:
FileMetadataColumn
,PartitionColumn
public abstract class MetadataColumn
extends ResolvedColumn
implements ConstantColumnLoader.ConstantColumnSpec
Resolved value for a metadata column (implicit file or partition column.) Resolution
here means identifying a value for the column.
-
Constructor Summary
ConstructorDescriptionMetadataColumn
(String name, TypeProtos.MajorType type, String value, VectorSource source, int sourceIndex) -
Method Summary
Modifier and TypeMethodDescriptionname()
The name of the column as it appears in the output row (record batch.)abstract MetadataColumn
resolve
(FileMetadata fileInfo, VectorSource source, int sourceIndex) schema()
Return the type of this column.toString()
value()
Methods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
metadata, project, source, sourceIndex
-
Constructor Details
-
MetadataColumn
public MetadataColumn(String name, TypeProtos.MajorType type, String value, VectorSource source, int sourceIndex)
-
-
Method Details
-
schema
Description copied from class:ResolvedColumn
Return the type of this column. Used primarily by the schema smoothing mechanism.- Specified by:
schema
in interfaceConstantColumnLoader.ConstantColumnSpec
- Specified by:
schema
in classResolvedColumn
- Returns:
- the MaterializedField representation of this column
-
value
- Specified by:
value
in interfaceConstantColumnLoader.ConstantColumnSpec
-
name
Description copied from interface:ColumnProjection
The name of the column as it appears in the output row (record batch.)- Specified by:
name
in interfaceColumnProjection
- Specified by:
name
in interfaceConstantColumnLoader.ConstantColumnSpec
- Returns:
- the output column name
-
resolve
-
toString
-