Package org.apache.drill.exec.planner
Class DFSDirPartitionLocation
java.lang.Object
org.apache.drill.exec.planner.DFSDirPartitionLocation
- All Implemented Interfaces:
PartitionLocation
Composite partition location corresponds to a directory in the file system.
-
Constructor Summary
ConstructorDescriptionDFSDirPartitionLocation
(String[] dirs, Collection<PartitionLocation> subPartitions) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.Path
Returns the path string of directory names only for composite partitionorg.apache.hadoop.fs.Path
Returns the path of this partition.Returns the list of the non-composite partitions that this partition consists of.getPartitionValue
(int index) Returns the value of the 'index' partition columnboolean
Returns if this is a simple or composite partition.
-
Constructor Details
-
DFSDirPartitionLocation
-
-
Method Details
-
getPartitionValue
Description copied from interface:PartitionLocation
Returns the value of the 'index' partition column- Specified by:
getPartitionValue
in interfacePartitionLocation
-
getEntirePartitionLocation
public org.apache.hadoop.fs.Path getEntirePartitionLocation()Description copied from interface:PartitionLocation
Returns the path of this partition. Only a non-composite partition supports this.- Specified by:
getEntirePartitionLocation
in interfacePartitionLocation
-
getPartitionLocationRecursive
Description copied from interface:PartitionLocation
Returns the list of the non-composite partitions that this partition consists of.- Specified by:
getPartitionLocationRecursive
in interfacePartitionLocation
-
isCompositePartition
public boolean isCompositePartition()Description copied from interface:PartitionLocation
Returns if this is a simple or composite partition.- Specified by:
isCompositePartition
in interfacePartitionLocation
-
getCompositePartitionPath
public org.apache.hadoop.fs.Path getCompositePartitionPath()Description copied from interface:PartitionLocation
Returns the path string of directory names only for composite partition- Specified by:
getCompositePartitionPath
in interfacePartitionLocation
-