public class PartitionIterable extends Object implements Iterable<Partition>
| Constructor and Description |
|---|
PartitionIterable(Collection<Partition> ptnsProvided)
Dummy constructor, which simply acts as an iterator on an already-present
list of partitions, allows for easy drop-in replacement for other methods
that already have a List<Partition>
|
PartitionIterable(IMetaStoreClient msc,
Table table,
int batch_size)
Primary constructor that fetches all partitions in a given table, given
a Hive object and a table object, and a partial partition spec.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPartitionNames(IMetaStoreClient msc,
String catName,
String dbName,
String tblName,
short max) |
Iterator<Partition> |
iterator() |
PartitionIterable |
withProjectSpec(GetPartitionsRequest request) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic PartitionIterable(Collection<Partition> ptnsProvided)
public PartitionIterable(IMetaStoreClient msc, Table table, int batch_size) throws MetastoreException
MetastoreExceptionpublic List<String> getPartitionNames(IMetaStoreClient msc, String catName, String dbName, String tblName, short max) throws MetastoreException
MetastoreExceptionpublic PartitionIterable withProjectSpec(GetPartitionsRequest request)
Copyright © 2024 The Apache Software Foundation. All rights reserved.