public class PartitionIterable extends Object implements Iterable<Partition>
Constructor and Description |
---|
PartitionIterable(Hive db,
Table table,
Map<String,String> partialPartitionSpec,
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.
|
PartitionIterable(List<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
|
Modifier and Type | Method and Description |
---|---|
Iterator<Partition> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PartitionIterable(List<Partition> ptnsProvided)
public PartitionIterable(Hive db, Table table, Map<String,String> partialPartitionSpec, int batch_size) throws HiveException
HiveException
Copyright © 2016 The Apache Software Foundation. All rights reserved.