public static class CompositePartitionSpecProxy.Iterator extends Object implements PartitionSpecProxy.PartitionIterator
Constructor and Description |
---|
Iterator(CompositePartitionSpecProxy composite) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public Iterator(CompositePartitionSpecProxy composite)
public Partition getCurrent()
PartitionSpecProxy.PartitionIterator
getCurrent
in interface PartitionSpecProxy.PartitionIterator
public String getDbName()
PartitionSpecProxy.PartitionIterator
getDbName
in interface PartitionSpecProxy.PartitionIterator
public String getTableName()
PartitionSpecProxy.PartitionIterator
getTableName
in interface PartitionSpecProxy.PartitionIterator
public Map<String,String> getParameters()
PartitionSpecProxy.PartitionIterator
getParameters
in interface PartitionSpecProxy.PartitionIterator
public void setParameters(Map<String,String> parameters)
PartitionSpecProxy.PartitionIterator
setParameters
in interface PartitionSpecProxy.PartitionIterator
parameters
- Key-value map fo Partition-level parameters.public String getLocation()
PartitionSpecProxy.PartitionIterator
getLocation
in interface PartitionSpecProxy.PartitionIterator
public void putToParameters(String key, String value)
PartitionSpecProxy.PartitionIterator
putToParameters
in interface PartitionSpecProxy.PartitionIterator
public void setCreateTime(long time)
PartitionSpecProxy.PartitionIterator
setCreateTime
in interface PartitionSpecProxy.PartitionIterator
time
- Timestamp indicating the time of creation of the Partition.Copyright © 2021 The Apache Software Foundation. All rights reserved.