com.bigdata.service.proxy
Interface IRemoteChunk<E>

Type Parameters:
E - The generic type of the elements in the chunk.
All Superinterfaces:
Serializable
All Known Implementing Classes:
RemoteChunk

public interface IRemoteChunk<E>
extends Serializable

Abstraction for a chunk from a remote iterator. Instances of this interface are serialized by a remote service and materialized on the client. The interface itself is NOT Remote.

Version:
$Id: IRemoteChunk.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

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.
 

Method Detail

isExhausted

boolean isExhausted()
true iff the iterator will not return any more chunks.


getChunk

E[] getChunk()
The elements in the current chunk -or- null iff there are NO elements in the chunk.


getKeyOrder

IKeyOrder<E> getKeyOrder()
The natural sort orded of the elements in this chunk -or- null 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.



Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.