GridGain™ 4.3.1e
Enterprise "Big Data" Edition

org.gridgain.grid.cache.query
Interface GridCacheQueryFuture<T>

All Superinterfaces:
Callable<Collection<T>>, GridFuture<Collection<T>>, GridIterable<T>, GridIterator<T>, GridSerializableIterator<T>, Iterable<T>, Iterator<T>, Serializable
All Known Subinterfaces:
GridCacheFieldsQueryFuture

public interface GridCacheQueryFuture<T>
extends GridFuture<Collection<T>>, GridIterable<T>

Cache query future returned by query execution. Specifically returned by GridCacheQuery.execute(GridProjection...) or by analogous methods on GridCacheReduceQuery and GridCacheTransformQuery. Refer to corresponding query documentation for more information.

See Also:
GridCacheQuery, GridCacheReduceQuery, GridCacheTransformQuery
 

Method Summary
 boolean available()
          Tests whether or not next Iterator.next() call will block.
 boolean cancel()
          Cancels this query future and stop receiving any further results for the query associated with this future.
 boolean isDone()
          Checks if all data is fetched by the query.
 int size()
          Number of elements currently fetched.
 
Methods inherited from interface org.gridgain.grid.GridFuture
concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, listenAsync, predicate, startTime, stopListenAsync, syncNotify, syncNotify
 
Methods inherited from interface java.util.concurrent.Callable
call
 
Methods inherited from interface org.gridgain.grid.lang.GridIterable
iterator
 
Methods inherited from interface org.gridgain.grid.lang.GridIterator
hasNextX, nextX, removeX
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

size

int size()
Number of elements currently fetched.

Returns:
Number of elements currently fetched.

available

boolean available()
Tests whether or not next Iterator.next() call will block.

Returns:
Whether or not next Iterator.next() call will block.

isDone

boolean isDone()
Checks if all data is fetched by the query.

Specified by:
isDone in interface GridFuture<Collection<T>>
Returns:
True if all data is fetched, false otherwise.

cancel

boolean cancel()
               throws GridException
Cancels this query future and stop receiving any further results for the query associated with this future.

Specified by:
cancel in interface GridFuture<Collection<T>>
Throws:
GridException - If cancellation failed.
Returns:
True if future was canceled (i.e. was not finished prior to this call).

GridGain™ 4.3.1e
Enterprise "Big Data" Edition

GridGain - In-Memory Big Data
Enterprise "Big Data" Edition, ver. 4.3.1e.10112012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Join GridGain User Group Follow GridGain on Twitter Follow GridGain on Vimeo