T - The type of elements returned by the iterator.@Public public abstract class SplittableIterator<T> extends Object implements Iterator<T>, Serializable
| Constructor and Description |
|---|
SplittableIterator() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getMaximumNumberOfSplits()
The maximum number of splits into which this iterator can be split up.
|
Iterator<T> |
getSplit(int num,
int numPartitions)
Splits this iterator into n partitions and returns the i-th partition
out of those.
|
abstract Iterator<T>[] |
split(int numPartitions)
Splits this iterator into a number disjoint iterators.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removepublic abstract Iterator<T>[] split(int numPartitions)
numPartitions - The number of iterators to split into.public Iterator<T> getSplit(int num, int numPartitions)
num - The partition to return (i).numPartitions - The number of partitions to split into (n).public abstract int getMaximumNumberOfSplits()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.