public static class PartitionSpecProxy.SimplePartitionWrapperIterator extends Object implements PartitionSpecProxy.PartitionIterator
| Constructor and Description |
|---|
PartitionSpecProxy.SimplePartitionWrapperIterator(Partition partition) |
| Modifier and Type | Method and Description |
|---|---|
Partition |
getCurrent()
Getter for the Partition "pointed to" by the iterator.
|
String |
getDbName()
Getter for the name of the DB.
|
String |
getLocation()
Getter for Partition-location.
|
Map<String,String> |
getParameters()
Getter for the Partition parameters.
|
String |
getTableName()
Getter for the name of the table.
|
boolean |
hasNext() |
Partition |
next() |
void |
putToParameters(String key,
String value)
Insert an individual parameter to a Partition's parameter-set.
|
void |
remove() |
void |
setCreateTime(long time)
Setter for creation-time of a Partition.
|
void |
setParameters(Map<String,String> parameters)
Setter for Partition parameters.
|
public PartitionSpecProxy.SimplePartitionWrapperIterator(Partition partition)
public Partition getCurrent()
PartitionSpecProxy.PartitionIteratorgetCurrent in interface PartitionSpecProxy.PartitionIteratorpublic String getDbName()
PartitionSpecProxy.PartitionIteratorgetDbName in interface PartitionSpecProxy.PartitionIteratorpublic String getTableName()
PartitionSpecProxy.PartitionIteratorgetTableName in interface PartitionSpecProxy.PartitionIteratorpublic Map<String,String> getParameters()
PartitionSpecProxy.PartitionIteratorgetParameters in interface PartitionSpecProxy.PartitionIteratorpublic void setParameters(Map<String,String> parameters)
PartitionSpecProxy.PartitionIteratorsetParameters in interface PartitionSpecProxy.PartitionIteratorparameters - Key-value map fo Partition-level parameters.public void putToParameters(String key, String value)
PartitionSpecProxy.PartitionIteratorputToParameters in interface PartitionSpecProxy.PartitionIteratorpublic String getLocation()
PartitionSpecProxy.PartitionIteratorgetLocation in interface PartitionSpecProxy.PartitionIteratorpublic void setCreateTime(long time)
PartitionSpecProxy.PartitionIteratorsetCreateTime in interface PartitionSpecProxy.PartitionIteratortime - Timestamp indicating the time of creation of the Partition.Copyright © 2017 The Apache Software Foundation. All rights reserved.