Interface CacheQueryFuture<T>

    • Method Detail

      • next

        @Nullable
        T next()
        throws IgniteCheckedException
        Returns next element from result set.

        This is a blocking call which will wait if there are no elements available immediately.

        Returns:
        Next fetched element or null if all the elements have been fetched.
        Throws:
        IgniteCheckedException - If failed.
      • isDone

        boolean isDone()
        Checks if all data is fetched by the query.
        Specified by:
        isDone in interface IgniteInternalFuture<T>
        Returns:
        True if all data is fetched, false otherwise.
      • cancel

        boolean cancel()
                throws IgniteCheckedException
        Cancels this query future and stop receiving any further results for the query associated with this future.
        Specified by:
        cancel in interface IgniteInternalFuture<T>
        Returns:
        True if future was canceled (i.e. was not finished prior to this call).
        Throws:
        IgniteCheckedException - If cancellation failed.