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)
PartitionLocation
getPartitionValue
in interface PartitionLocation
public org.apache.hadoop.fs.Path getEntirePartitionLocation()
PartitionLocation
getEntirePartitionLocation
in interface PartitionLocation
public List<SimplePartitionLocation> getPartitionLocationRecursive()
PartitionLocation
getPartitionLocationRecursive
in interface PartitionLocation
public boolean isCompositePartition()
PartitionLocation
isCompositePartition
in interface PartitionLocation
public org.apache.hadoop.fs.Path getCompositePartitionPath()
PartitionLocation
getCompositePartitionPath
in interface PartitionLocation
Copyright © 1970 The Apache Software Foundation. All rights reserved.