public abstract class PartitionSpecProxy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionSpecProxy.Factory
Factory to construct PartitionSetProxy instances, from PartitionSets.
|
static interface |
PartitionSpecProxy.PartitionIterator
Iterator to iterate over Partitions corresponding to a PartitionSpec.
|
static class |
PartitionSpecProxy.SimplePartitionWrapperIterator
Simple wrapper class for pre-constructed Partitions, to expose a PartitionIterator interface,
where the iterator-sequence consists of just one Partition.
|
| Constructor and Description |
|---|
PartitionSpecProxy() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getCatName()
Get catalog name.
|
abstract String |
getDbName()
Getter for name of the DB.
|
abstract PartitionSpecProxy.PartitionIterator |
getPartitionIterator()
Iterator to the (virtual) sequence of Partitions represented by the PartitionSpec.
|
abstract String |
getTableName()
Getter for name of the table.
|
abstract void |
setCatName(String catName)
Set catalog name.
|
abstract void |
setDbName(String dbName)
Setter for name of the DB.
|
abstract void |
setRootLocation(String rootLocation)
Setter for the common root-location for all partitions in the PartitionSet.
|
abstract void |
setTableName(String tableName)
Setter for name of the table.
|
abstract int |
size()
The number of Partition instances represented by the PartitionSpec.
|
abstract List<org.apache.hadoop.hive.metastore.api.PartitionSpec> |
toPartitionSpec()
Conversion to a org.apache.hadoop.hive.metastore.api.PartitionSpec sequence.
|
public abstract int size()
public abstract void setCatName(String catName)
catName - catalog name.public abstract void setDbName(String dbName)
dbName - The name of the DB.public abstract void setTableName(String tableName)
tableName - The name of the table.public abstract String getCatName()
public abstract String getDbName()
public abstract String getTableName()
public abstract PartitionSpecProxy.PartitionIterator getPartitionIterator()
public abstract List<org.apache.hadoop.hive.metastore.api.PartitionSpec> toPartitionSpec()
public abstract void setRootLocation(String rootLocation) throws org.apache.hadoop.hive.metastore.api.MetaException
rootLocation - The new common root-location.org.apache.hadoop.hive.metastore.api.MetaExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.