Package org.infinispan.query.dsl
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.
public interface QueryResult<E>
Represents the result of aQuery
.- Since:
- 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OptionalLong
hitCount()
List<E>
list()
-
-
-
Method Detail
-
hitCount
OptionalLong hitCount()
- 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()
.
-
list
List<E> list()
- Returns:
- The results of the query as a list, respecting the bounds specified in
Query.startOffset(long)
andQuery.maxResults(int)
.
-
-