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
ConstructorsConstructorDescriptionDFSDirPartitionLocation(String[] dirs, Collection<PartitionLocation> subPartitions) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.PathReturns the path string of directory names only for composite partitionorg.apache.hadoop.fs.PathReturns 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 columnbooleanReturns if this is a simple or composite partition.
-
Constructor Details
-
DFSDirPartitionLocation
-
-
Method Details
-
getPartitionValue
Description copied from interface:PartitionLocationReturns the value of the 'index' partition column- Specified by:
getPartitionValuein interfacePartitionLocation
-
getEntirePartitionLocation
public org.apache.hadoop.fs.Path getEntirePartitionLocation()Description copied from interface:PartitionLocationReturns the path of this partition. Only a non-composite partition supports this.- Specified by:
getEntirePartitionLocationin interfacePartitionLocation
-
getPartitionLocationRecursive
Description copied from interface:PartitionLocationReturns the list of the non-composite partitions that this partition consists of.- Specified by:
getPartitionLocationRecursivein interfacePartitionLocation
-
isCompositePartition
public boolean isCompositePartition()Description copied from interface:PartitionLocationReturns if this is a simple or composite partition.- Specified by:
isCompositePartitionin interfacePartitionLocation
-
getCompositePartitionPath
public org.apache.hadoop.fs.Path getCompositePartitionPath()Description copied from interface:PartitionLocationReturns the path string of directory names only for composite partition- Specified by:
getCompositePartitionPathin interfacePartitionLocation
-