public interface PartitionedDataset<E> extends Dataset<E>
| Modifier and Type | Method and Description |
|---|---|
void |
dropPartition(PartitionKey key)
Drop a partition for a
PartitionKey. |
PartitionedDataset<E> |
getPartition(PartitionKey key,
boolean autoCreate)
Get a partition for a
PartitionKey, optionally creating the
partition if it doesn't already exist. |
Iterable<PartitionedDataset<E>> |
getPartitions()
Return partitions.
|
getDescriptor, getName, getNamespace, getUriPartitionedDataset<E> getPartition(PartitionKey key, boolean autoCreate)
PartitionKey, optionally creating the
partition if it doesn't already exist.key - The key used to look up the partition.autoCreate - If true, automatically creates the partition if it
doesn't exist.DatasetExceptionvoid dropPartition(PartitionKey key)
PartitionKey. Dropping a partition that
doesn't exist results in a DatasetException being thrown.key - The key used to look up the partition.DatasetExceptionIterable<PartitionedDataset<E>> getPartitions()
Return partitions.
Note that, depending on the implementation, the returned iterable can hold system resources until exhausted and/or finalized.
DatasetExceptionCopyright © 2013–2015. All rights reserved.