public class CompositePartitionSpecProxy extends PartitionSpecProxy
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePartitionSpecProxy.Iterator
Iterator to iterate over all Partitions, across all PartitionSpecProxy instances within the Composite.
|
PartitionSpecProxy.Factory, PartitionSpecProxy.PartitionIterator, PartitionSpecProxy.SimplePartitionWrapperIterator| Modifier | Constructor and Description |
|---|---|
protected |
CompositePartitionSpecProxy(List<PartitionSpec> partitionSpecs) |
protected |
CompositePartitionSpecProxy(String dbName,
String tableName,
List<PartitionSpec> partitionSpecs) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDbName()
Getter for name of the DB.
|
PartitionSpecProxy.PartitionIterator |
getPartitionIterator()
Iterator to the (virtual) sequence of Partitions represented by the PartitionSpec.
|
String |
getTableName()
Getter for name of the table.
|
void |
setDbName(String dbName)
Setter for name of the DB.
|
void |
setRootLocation(String rootLocation)
Setter for the common root-location for all partitions in the PartitionSet.
|
void |
setTableName(String tableName)
Setter for name of the table.
|
int |
size()
The number of Partition instances represented by the PartitionSpec.
|
List<PartitionSpec> |
toPartitionSpec()
Conversion to a org.apache.hadoop.hive.metastore.api.PartitionSpec sequence.
|
protected CompositePartitionSpecProxy(List<PartitionSpec> partitionSpecs)
protected CompositePartitionSpecProxy(String dbName, String tableName, List<PartitionSpec> partitionSpecs)
public int size()
PartitionSpecProxysize in class PartitionSpecProxypublic void setDbName(String dbName)
PartitionSpecProxysetDbName in class PartitionSpecProxydbName - The name of the DB.public void setTableName(String tableName)
PartitionSpecProxysetTableName in class PartitionSpecProxytableName - The name of the table.public String getDbName()
PartitionSpecProxygetDbName in class PartitionSpecProxypublic String getTableName()
PartitionSpecProxygetTableName in class PartitionSpecProxypublic PartitionSpecProxy.PartitionIterator getPartitionIterator()
PartitionSpecProxygetPartitionIterator in class PartitionSpecProxypublic List<PartitionSpec> toPartitionSpec()
PartitionSpecProxytoPartitionSpec in class PartitionSpecProxypublic void setRootLocation(String rootLocation) throws MetaException
PartitionSpecProxysetRootLocation in class PartitionSpecProxyrootLocation - The new common root-location.MetaExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.