public class ChunkedStriterator<I extends IChunkedIterator<E>,E> extends Striterator<I,E> implements IChunkedStriterator<I,E>
IChunkedIterators can be executed on the server and them stream results back to the client. We really need to introduce custom compression for chunk-at-a-time results streamed back from the server. If the filters are to be specified on the client and applied on the server, then an
IFilterwill be needed to construct the filter stack on the server.
|Constructor and Description|
Wraps the source iterator as a chunked iterator.
Wraps the source iterator as a chunked iterator using a default chunk size.
|Modifier and Type||Method and Description|
Strengthened return type.
Closes the iterator, releasing any associated resources.
Return the next "chunk" from the iterator.
addInstanceOfFilter, append, exclude, hasMoreElements, hasNext, makeUnique, map, next, nextElement, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ChunkedStriterator(I src)
src- The source iterator.
public final E nextChunk()
public final void close()
falseto ensure that the iterator is closed (and its resources release) as soon as it is exhausted.
Note: Implementations that support
Iterator.remove() MUST NOT
eagerly close the iterator when it is exhausted since that would make it
impossible to remove the last visited statement. Instead they MUST wait
for an explicit
ICloseableIterator.close() by the application.
IChunkedStriterator<I extends IChunkedIterator<E>,E>
IStriterator<I extends IChunkedIterator<E>,E>
Striterator<I extends IChunkedIterator<E>,E>
filter- The filter.
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.