public class DFSDirPartitionLocation extends Object implements PartitionLocation
| Constructor and Description |
|---|
DFSDirPartitionLocation(String[] dirs,
Collection<PartitionLocation> subPartitions) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
getCompositePartitionPath()
Returns the path string of directory names only for composite partition
|
org.apache.hadoop.fs.Path |
getEntirePartitionLocation()
Returns the path of this partition.
|
List<SimplePartitionLocation> |
getPartitionLocationRecursive()
Returns the list of the non-composite partitions that this partition consists of.
|
String |
getPartitionValue(int index)
Returns the value of the 'index' partition column
|
boolean |
isCompositePartition()
Returns if this is a simple or composite partition.
|
public DFSDirPartitionLocation(String[] dirs, Collection<PartitionLocation> subPartitions)
public String getPartitionValue(int index)
PartitionLocationgetPartitionValue in interface PartitionLocationpublic org.apache.hadoop.fs.Path getEntirePartitionLocation()
PartitionLocationgetEntirePartitionLocation in interface PartitionLocationpublic List<SimplePartitionLocation> getPartitionLocationRecursive()
PartitionLocationgetPartitionLocationRecursive in interface PartitionLocationpublic boolean isCompositePartition()
PartitionLocationisCompositePartition in interface PartitionLocationpublic org.apache.hadoop.fs.Path getCompositePartitionPath()
PartitionLocationgetCompositePartitionPath in interface PartitionLocationCopyright © 2021 The Apache Software Foundation. All rights reserved.