public abstract class AbstractExtendedSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,LOS,SF,AF>,H,R extends SearchResult<H>,LOS,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,AF extends SearchAggregationFactory,C> extends AbstractSearchQueryOptionsStep<S,H,LOS,PDF,SF,AF,C>
| Constructor and Description |
|---|
AbstractExtendedSearchQueryOptionsStep(IndexScope<C> indexScope,
SearchQueryBuilder<H,C> searchQueryBuilder,
LoadingContextBuilder<?,?,LOS> loadingContextBuilder) |
| Modifier and Type | Method and Description |
|---|---|
R |
fetch(Integer limit)
Execute the query and return the
SearchResult,
limiting to limit hits. |
R |
fetch(Integer offset,
Integer limit)
|
R |
fetchAll()
Execute the query and return the
SearchResult,
including all hits, without any sort of limit. |
abstract ExtendedSearchQuery<H,R> |
toQuery()
Create a
SearchQuery instance
matching the definition given in the previous DSL steps. |
aggregation, aggregation, extendAggregationFactory, extendPredicateFactory, extendSortFactory, failAfter, fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, loading, predicate, predicate, routing, routing, sort, sort, thisAsS, truncateAfterpublic AbstractExtendedSearchQueryOptionsStep(IndexScope<C> indexScope, SearchQueryBuilder<H,C> searchQueryBuilder, LoadingContextBuilder<?,?,LOS> loadingContextBuilder)
public abstract ExtendedSearchQuery<H,R> toQuery()
SearchQueryFinalStepSearchQuery instance
matching the definition given in the previous DSL steps.
Calling this method is generally not necessary as most query execution methods
are also implemented by this DSL step,
so for example .toQuery().fetch() can be replaced with simply .fetch().
toQuery in interface SearchQueryFinalStep<H>toQuery in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,LOS,SF,AF>,H,LOS,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,AF extends SearchAggregationFactory,C>SearchQuery resulting from the previous DSL steps.public R fetchAll()
SearchFetchableSearchResult,
including all hits, without any sort of limit.
SearchFetchable.fetch(Integer) or SearchFetchable.fetch(Integer, Integer) should generally be preferred, for performance reasons.
fetchAll in interface SearchFetchable<H>fetchAll in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,LOS,SF,AF>,H,LOS,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,AF extends SearchAggregationFactory,C>SearchResult.public R fetch(Integer limit)
SearchFetchableSearchResult,
limiting to limit hits.fetch in interface SearchFetchable<H>fetch in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,LOS,SF,AF>,H,LOS,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,AF extends SearchAggregationFactory,C>limit - The maximum number of hits to be included in the SearchResult. null means no limit.SearchResult.public R fetch(Integer offset, Integer limit)
SearchFetchablefetch in interface SearchFetchable<H>fetch in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,LOS,SF,AF>,H,LOS,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,AF extends SearchAggregationFactory,C>offset - The number of hits to skip before adding the hits to the SearchResult. null means no offset.limit - The maximum number of hits to be included in the SearchResult. null means no limit.SearchResult.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.