Interface QueryResult<E>

Type Parameters:
E - The type of the result. Queries having projections (a SELECT clause) will return an Object[] for each result, with the field values. When not using SELECT, the results will contain instances of objects corresponding to the cache values matching the query.
All Superinterfaces:
QueryResult<E>

@Deprecated(since="14.0", forRemoval=true) public interface QueryResult<E> extends QueryResult<E>
Deprecated, for removal: This API element is subject to removal in a future version.
use QueryResult instead
Represents the result of a Query.

If the query was executed using Query.executeStatement(), the list of results will be empty and count() will return the number of affected entries.

Since:
11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    default OptionalLong
    Deprecated.
    replaced by count()

    Methods inherited from interface QueryResult

    list
  • Method Details

    • hitCount

      @Deprecated default OptionalLong hitCount()
      Deprecated.
      replaced by count()
      Returns:
      The number of hits from the query, ignoring pagination. When the query is non-indexed, for performance reasons, the hit count is not calculated and will return OptionalLong.empty().
    • count

      HitCount count()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      count in interface QueryResult<E>
      Returns:
      An object containing information about the number of hits from the query, ignoring pagination.