public class PartitionSpecWithSharedSDProxy extends PartitionSpecProxy
Modifier and Type | Class and Description |
---|---|
static class |
PartitionSpecWithSharedSDProxy.Iterator
Iterator implementation to iterate over all Partitions within the PartitionSpecWithSharedSDProxy.
|
PartitionSpecProxy.Factory, PartitionSpecProxy.PartitionIterator, PartitionSpecProxy.SimplePartitionWrapperIterator
Constructor and Description |
---|
PartitionSpecWithSharedSDProxy(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 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.
|
public PartitionSpecWithSharedSDProxy(PartitionSpec partitionSpec)
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 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 void setRootLocation(String rootLocation) throws MetaException
PartitionSpecProxy
setRootLocation
in class PartitionSpecProxy
rootLocation
- The new common root-location.MetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.