Class PartitionColumn
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
org.apache.drill.exec.physical.impl.scan.file.MetadataColumn
org.apache.drill.exec.physical.impl.scan.file.PartitionColumn
- All Implemented Interfaces:
ColumnProjection
,ConstantColumnLoader.ConstantColumnSpec
Represents a partition column (usually dir0, dir1, ...). This is an implicit
column that has a variable part: the partition index.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPartitionColumn
(String name, int partition) PartitionColumn
(String name, int partition, FileMetadata fileInfo, VectorSource source, int sourceIndex) -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeProtos.MajorType
dataType()
int
resolve
(FileMetadata fileInfo, VectorSource source, int sourceIndex) Methods inherited from class org.apache.drill.exec.physical.impl.scan.file.MetadataColumn
name, schema, toString, value
Methods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedColumn
metadata, project, source, sourceIndex
-
Field Details
-
partition
protected final int partition
-
-
Constructor Details
-
PartitionColumn
-
PartitionColumn
public PartitionColumn(String name, int partition, FileMetadata fileInfo, VectorSource source, int sourceIndex)
-
-
Method Details
-
partition
public int partition() -
resolve
- Specified by:
resolve
in classMetadataColumn
-
dataType
-