GigaSpaces XAP 10.0.1 API

com.gigaspaces.client
Interface ReadByIdsResult<T>

All Superinterfaces:
Iterable<T>

public interface ReadByIdsResult<T>
extends Iterable<T>

Holds iterable results of the readByIds operation. When iterating through the results, null values are skipped. If you want to access null values, use the getResultsArray() method. Results are ordered based on the list of Ids provided to the readByIds method.

Since:
7.1.1
Author:
idan

Method Summary
 T[] getResultsArray()
          Returns the results array for the readByIds operation.
 Iterator<T> iterator()
          Returns an iterator over the readByIds operation results.
 

Method Detail

iterator

Iterator<T> iterator()
Returns an iterator over the readByIds operation results.

Specified by:
iterator in interface Iterable<T>

getResultsArray

T[] getResultsArray()
Returns the results array for the readByIds operation.

The array's size is the same as that of the given Ids array. Unmatched Ids will have a null value in the corresponding results array index.

Returns:
Results array.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.