public abstract class BasePartitionScheme extends Object implements PartitionScheme
PartitionScheme.getPartition(String)
and PartitionScheme.getPartitions()
.Modifier and Type | Field and Description |
---|---|
protected List<Partition> |
mPartitions |
protected Map<String,Partition> |
mSpecToPartition |
Constructor and Description |
---|
BasePartitionScheme(List<Partition> partitions)
A map from partition spec to partitions is computed from the partitions.
|
Modifier and Type | Method and Description |
---|---|
void |
addPartitions(List<Partition> partitions)
Add a list of partitions.
|
Partition |
getPartition(String spec) |
List<Partition> |
getPartitions()
Get a list of partitions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getPartitionCols, getTableLayout
public void addPartitions(List<Partition> partitions)
PartitionScheme
addPartitions
in interface PartitionScheme
partitions
- partitions to addpublic List<Partition> getPartitions()
PartitionScheme
getPartitions
in interface PartitionScheme
public Partition getPartition(String spec)
getPartition
in interface PartitionScheme
spec
- the partition specCopyright © 2023. All Rights Reserved.