public class PartitionListComposingSpecProxy extends PartitionSpecProxy
Modifier and Type | Class and Description |
---|---|
static class |
PartitionListComposingSpecProxy.Iterator |
PartitionSpecProxy.Factory, PartitionSpecProxy.PartitionIterator, PartitionSpecProxy.SimplePartitionWrapperIterator
Modifier | Constructor and Description |
---|---|
protected |
PartitionListComposingSpecProxy(PartitionSpec partitionSpec) |
Modifier and Type | Method and Description |
---|---|
String |
getCatName()
Get catalog name.
|
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 |
setCatName(String catName)
Set catalog name.
|
void |
setDbName(String dbName)
Setter for name of the DB.
|
void |
setRootLocation(String newRootPath)
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 PartitionListComposingSpecProxy(PartitionSpec partitionSpec)
public String getCatName()
PartitionSpecProxy
getCatName
in class PartitionSpecProxy
public String getDbName()
PartitionSpecProxy
getDbName
in class PartitionSpecProxy
public String getTableName()
PartitionSpecProxy
getTableName
in class PartitionSpecProxy
public PartitionSpecProxy.PartitionIterator getPartitionIterator()
PartitionSpecProxy
getPartitionIterator
in class PartitionSpecProxy
public List<PartitionSpec> toPartitionSpec()
PartitionSpecProxy
toPartitionSpec
in class PartitionSpecProxy
public int size()
PartitionSpecProxy
size
in class PartitionSpecProxy
public void setCatName(String catName)
PartitionSpecProxy
setCatName
in class PartitionSpecProxy
catName
- catalog name.public void setDbName(String dbName)
PartitionSpecProxy
setDbName
in class PartitionSpecProxy
dbName
- The name of the DB.public void setTableName(String tableName)
PartitionSpecProxy
setTableName
in class PartitionSpecProxy
tableName
- The name of the table.public void setRootLocation(String newRootPath) throws MetaException
PartitionSpecProxy
setRootLocation
in class PartitionSpecProxy
newRootPath
- The new common root-location.MetaException
Copyright © 2019 The Apache Software Foundation. All rights reserved.