|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.proxy.RemoteChunk<E>
E - public class RemoteChunk<E>
A chunk of elements materialized from a remote iterator together with some
metadata about the state of the remote iterator (whether or not it is
exhausted, what its IKeyOrder is (if any)).
| Constructor Summary | |
|---|---|
RemoteChunk()
De-serialization ctor. |
|
RemoteChunk(boolean exhausted,
IStreamSerializer<E[]> serializer,
IKeyOrder<E> keyOrder,
E[] a)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteChunk()
public RemoteChunk(boolean exhausted,
IStreamSerializer<E[]> serializer,
IKeyOrder<E> keyOrder,
E[] a)
| Method Detail |
|---|
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 ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||