E - public class RemoteChunk<E> extends Object implements IRemoteChunk<E>, Externalizable
IKeyOrder is (if any)).| Constructor and Description |
|---|
RemoteChunk()
De-serialization ctor.
|
RemoteChunk(boolean exhausted,
IStreamSerializer<E[]> serializer,
IKeyOrder<E> keyOrder,
E[] a) |
| Modifier and Type | Method and Description |
|---|---|
E[] |
getChunk()
The elements in the current chunk -or-
null iff there are
NO elements in the chunk. |
IKeyOrder<E> |
getKeyOrder()
The natural sort orded of the elements in this chunk -or-
null if the elements are not in any known order. |
boolean |
isExhausted()
true iff the iterator will not return any more chunks. |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public RemoteChunk()
public RemoteChunk(boolean exhausted,
IStreamSerializer<E[]> serializer,
IKeyOrder<E> keyOrder,
E[] a)
public E[] getChunk()
IRemoteChunknull iff there are
NO elements in the chunk.getChunk in interface IRemoteChunk<E>public IKeyOrder<E> getKeyOrder()
IRemoteChunknull if the elements are not in any known order.
Note: The returned value should be the same each time for a given source iterator. It is put here so that we can avoid an RMI for this property and the expense of serializing the value with each chunk.
getKeyOrder in interface IRemoteChunk<E>public boolean isExhausted()
IRemoteChunktrue iff the iterator will not return any more chunks.isExhausted in interface IRemoteChunk<E>public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.