public class ChunkedOrderedStriterator<I extends IChunkedOrderedIterator<E>,E> extends ChunkedStriterator<I,E> implements IChunkedOrderedStriterator<I,E>
realSource, src
DEFAULT_CHUNK_SIZE
Constructor and Description |
---|
ChunkedOrderedStriterator(I src) |
ChunkedOrderedStriterator(int chunkSize,
Iterator<E> src)
Wraps the source iterator as a chunked ordered iterator.
|
Modifier and Type | Method and Description |
---|---|
IChunkedOrderedStriterator<I,E> |
addFilter(IFilter<I,?,E> filter)
Strengthened return type.
|
IKeyOrder<E> |
getKeyOrder()
The natural order in which elements are being visited.
|
E[] |
nextChunk(IKeyOrder<E> keyOrder)
Return the next "chunk" of elements.
|
nextChunk
addInstanceOfFilter, append, close, exclude, hasMoreElements, hasNext, makeUnique, map, next, nextElement, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addInstanceOfFilter, append
hasMoreElements, nextElement
next, nextChunk, remove
close
public ChunkedOrderedStriterator(I src)
public final IKeyOrder<E> getKeyOrder()
IChunkedOrderedIterator
getKeyOrder
in interface IChunkedOrderedIterator<E>
null
if not known.public final E[] nextChunk(IKeyOrder<E> keyOrder)
IChunkedOrderedIterator
IChunkedOrderedIterator.getKeyOrder()
would return non-null
and the request order corresponds to the value that would be returned by
IChunkedOrderedIterator.getKeyOrder()
then the elements in the next chunk are NOT
sorted. Otherwise the elements in the next chunk are sorted before they
are returned. The size of the chunk is up to the implementation.nextChunk
in interface IChunkedOrderedIterator<E>
keyOrder
- The natural order for the elements in the chunk.public IChunkedOrderedStriterator<I,E> addFilter(IFilter<I,?,E> filter)
Strengthened return type.
addFilter
in interface IChunkedOrderedStriterator<I extends IChunkedOrderedIterator<E>,E>
addFilter
in interface IChunkedStriterator<I extends IChunkedOrderedIterator<E>,E>
addFilter
in interface IStriterator<I extends IChunkedOrderedIterator<E>,E>
addFilter
in class ChunkedStriterator<I extends IChunkedOrderedIterator<E>,E>
filter
- The filter.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.