Search in sources :

Example 1 with NodeTopDocs

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);
}
Also used : NodeTopDocs(org.infinispan.query.clustered.NodeTopDocs) QueryResponse(org.infinispan.query.clustered.QueryResponse) SearchQueryBuilder(org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder)

Aggregations

NodeTopDocs (org.infinispan.query.clustered.NodeTopDocs)1 QueryResponse (org.infinispan.query.clustered.QueryResponse)1 SearchQueryBuilder (org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder)1