Interface QueryResult<T>

All Superinterfaces:
Iterable<QueryResultItem>
All Known Implementing Classes:
GenericQueryResult, ProcedureResult

public interface QueryResult<T> extends Iterable<QueryResultItem>
Represents a collection of items which are results of a multipart query execution.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    A utility method for quickly retrieving the first batch update count array from the response.
    A utility method for quickly retrieving the first list in the response.
    int
    A utility method for quick retrieval of the first update count from the response.
    boolean
    Returns whether current iteration result is a list or an update count.
    int
    Returns a number of results in the response.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • size

      int size()
      Returns a number of results in the response.
    • isList

      boolean isList()
      Returns whether current iteration result is a list or an update count.
    • firstList

      List<T> firstList()
      A utility method for quickly retrieving the first list in the response. Returns null if the query has no lists.
    • firstBatchUpdateCount

      int[] firstBatchUpdateCount()
      A utility method for quickly retrieving the first batch update count array from the response.
    • firstUpdateCount

      int firstUpdateCount()
      A utility method for quick retrieval of the first update count from the response.