use of org.infinispan.query.clustered.NodeTopDocs in project infinispan by infinispan.
the class CQCreateEagerQuery method perform.
@Override
CompletionStage<QueryResponse> perform(BitSet segments) {
SearchQueryBuilder query = queryDefinition.getSearchQueryBuilder();
setFilter(segments);
CompletionStage<NodeTopDocs> nodeTopDocs = query.isEntityProjection() ? collectKeys(query) : collectProjections(query);
return nodeTopDocs.thenApply(QueryResponse::new);
}
Aggregations