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 |
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 |
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<PartitionSpec> |
toPartitionSpec()
Conversion to a org.apache.hadoop.hive.metastore.api.PartitionSpec sequence.
|
public abstract int size()
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 getDbName()
public abstract String getTableName()
public abstract PartitionSpecProxy.PartitionIterator getPartitionIterator()
public abstract List<PartitionSpec> toPartitionSpec()
public abstract void setRootLocation(String rootLocation) throws MetaException
rootLocation
- The new common root-location.MetaException
Copyright © 2017 The Apache Software Foundation. All rights reserved.