public class WindowedSorterIterator<T> extends SinglePrefetchIterator<T> implements IClosableIterator<T>
| Constructor and Description |
|---|
WindowedSorterIterator(Iterator<T> it,
int maxBufferSize,
Comparator<T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
An iterator must always free all resources once done with iteration.
|
protected T |
prefetch() |
static <T> IClosableIterator<T> |
wrap(Iterator<T> it,
int maxBufferSize,
Comparator<T> comparator) |
finish, hasNext, next, removepublic WindowedSorterIterator(Iterator<T> it, int maxBufferSize, Comparator<T> comparator)
public static <T> IClosableIterator<T> wrap(Iterator<T> it, int maxBufferSize, Comparator<T> comparator)
protected T prefetch() throws Exception
prefetch in class SinglePrefetchIterator<T>Exceptionpublic void close()
SinglePrefetchIteratorclose in interface IClosableclose in class SinglePrefetchIterator<T>Copyright © 2015. All rights reserved.