E - The generic type of the component elements visited by the source
iterator.public class RemoteChunkedIterator<E> extends Object implements IRemoteChunkedIterator<E>
IAsynchronousIterator exposing an interface suitable
for export as a proxy object using RMI to communicate back with itself and
pull data efficiently from the source iterator.| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
protected static boolean |
INFO |
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
RemoteChunkedIterator(IAsynchronousIterator<E[]> sourceIterator,
IStreamSerializer<E[]> serializer,
IKeyOrder<E> keyOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the source iterator.
|
IRemoteChunk<E> |
nextChunk()
Return the next
IRemoteChunk from the source iterator. |
protected static final transient org.apache.log4j.Logger log
protected static final boolean INFO
protected static final boolean DEBUG
public RemoteChunkedIterator(IAsynchronousIterator<E[]> sourceIterator, IStreamSerializer<E[]> serializer, IKeyOrder<E> keyOrder)
sourceIterator - The source iterator.serializer - The object that will be used to (de-)serialize the elements.keyOrder - The natural order of the visited elements if known and
otherwise null.public void close()
throws IOException
close in interface IRemoteChunkedIterator<E>IOExceptionpublic IRemoteChunk<E> nextChunk() throws IOException
IRemoteChunk from the source iterator. If it
is exhausted then return an IRemoteChunk which indicates that
no more results are available.nextChunk in interface IRemoteChunkedIterator<E>IRemoteChunk.IOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.