@InterfaceAudience.LimitedPrivate(value="Hive") @InterfaceStability.Evolving public class HCatPartitionSpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HCatPartitionSpec.HCatPartitionIterator
Iterator over HCatPartitions in the HCatPartitionSpec.
|
Modifier and Type | Field and Description |
---|---|
protected HCatTable |
hcatTable |
protected PartitionSpecProxy |
partitionSpecProxy |
Modifier | Constructor and Description |
---|---|
protected |
HCatPartitionSpec(HCatTable hcatTable,
PartitionSpecProxy partitionSpecProxy) |
Modifier and Type | Method and Description |
---|---|
String |
getDbName()
Getter for DBName of this HCatPartitionSpec.
|
HCatPartitionSpec.HCatPartitionIterator |
getPartitionIterator()
Getter for an Iterator to the first HCatPartition in the HCatPartitionSpec.
|
String |
getTableName()
Getter for TableName of this HCatPartitionSpec.
|
void |
setRootLocation(String location)
Setter for the "root" location of the HCatPartitionSpec.
|
int |
size()
Getter for the number of HCatPartitions represented by this HCatPartitionSpec instance.
|
protected HCatTable hcatTable
protected PartitionSpecProxy partitionSpecProxy
protected HCatPartitionSpec(HCatTable hcatTable, PartitionSpecProxy partitionSpecProxy) throws HCatException
HCatException
public String getDbName()
public String getTableName()
public int size() throws HCatException
HCatException
- On failure.public void setRootLocation(String location) throws HCatException
location
- The new "root" location of the HCatPartitionSpec.HCatException
- On failure to set a new location.public HCatPartitionSpec.HCatPartitionIterator getPartitionIterator()
Copyright © 2016 The Apache Software Foundation. All rights reserved.