public interface PagedSearchResult<T> extends PagedResult<T>
Modifier and Type | Method and Description |
---|---|
static <T> io.sphere.sdk.search.PagedSearchResultImpl<T> |
empty()
Creates a
{@link PagedSearchResult} for search with no matching values. |
FilteredFacetResult |
getFacetResult(FilteredFacetExpression<T> facetExpression)
Obtains the
FilteredFacetResult of the facet with the given facet expression. |
RangeFacetResult |
getFacetResult(RangeFacetedSearchExpression<T> facetedSearchExpression)
Obtains the
RangeFacetResult of the facet with the given facet search expression. |
RangeFacetResult |
getFacetResult(RangeFacetExpression<T> facetExpression)
Obtains the
RangeFacetResult of the facet with the given facet expression. |
FacetResult |
getFacetResult(String facetResultPath)
Obtains the
FacetResult of the facet with the given result path. |
TermFacetResult |
getFacetResult(TermFacetedSearchExpression<T> facetedSearchExpression)
Obtains the
TermFacetResult of the facet with the given facet search expression. |
TermFacetResult |
getFacetResult(TermFacetExpression<T> facetExpression)
Obtains the
TermFacetResult of the facet with the given facet expression. |
Map<String,FacetResult> |
getFacetsResults() |
FilteredFacetResult |
getFilteredFacetResult(String facetResultPath)
Obtains the
FilteredFacetResult of the facet with the given facet expression. |
Long |
getOffset()
The offset supplied by the client or the server default.
|
RangeFacetResult |
getRangeFacetResult(String facetResultPath)
Obtains the
RangeFacetResult of the facet with the given facet expression. |
SimpleRangeStats |
getRangeStatsOfAllRanges(RangeFacetedSearchExpression<T> facetedSearchExpression)
Obtains the
SimpleRangeStats of the range facet. |
SimpleRangeStats |
getRangeStatsOfAllRanges(RangeFacetExpression<T> facetExpression)
Obtains the
SimpleRangeStats of the range facet. |
List<T> |
getResults()
List of results.
|
TermFacetResult |
getTermFacetResult(String facetResultPath)
Obtains the
TermFacetResult of the facet with the given facet expression. |
Long |
getTotal()
The total number of results matching the request.
|
getCount, getLimit, getPageIndex, getTotalPages, head, isFirst, isLast, size
Map<String,FacetResult> getFacetsResults()
static <T> io.sphere.sdk.search.PagedSearchResultImpl<T> empty()
{@link PagedSearchResult}
for search with no matching values.T
- the type of the underlying modelPagedSearchResult
@Nullable FacetResult getFacetResult(String facetResultPath)
FacetResult
of the facet with the given result path.facetResultPath
- the facet result path, which is either the attribute path or the alias@Nullable TermFacetResult getFacetResult(TermFacetExpression<T> facetExpression)
TermFacetResult
of the facet with the given facet expression.facetExpression
- the facet expression@Nullable RangeFacetResult getFacetResult(RangeFacetExpression<T> facetExpression)
RangeFacetResult
of the facet with the given facet expression.facetExpression
- the facet expression@Nullable FilteredFacetResult getFacetResult(FilteredFacetExpression<T> facetExpression)
FilteredFacetResult
of the facet with the given facet expression.facetExpression
- the facet expression@Nullable TermFacetResult getFacetResult(TermFacetedSearchExpression<T> facetedSearchExpression)
TermFacetResult
of the facet with the given facet search expression.facetedSearchExpression
- the facet search expression@Nullable RangeFacetResult getFacetResult(RangeFacetedSearchExpression<T> facetedSearchExpression)
RangeFacetResult
of the facet with the given facet search expression.facetedSearchExpression
- the facet search expressionSimpleRangeStats getRangeStatsOfAllRanges(RangeFacetExpression<T> facetExpression)
SimpleRangeStats
of the range facet.
This method should only be used when the range facet has the form (* to "0"),("0" to *)
,
which is obtained when calling RangeTermFacetedSearchSearchModel.allRanges()
.facetExpression
- the range facet expressionSimpleRangeStats
for the given range facetIllegalArgumentException
- if the given range facet has an invalid formSimpleRangeStats getRangeStatsOfAllRanges(RangeFacetedSearchExpression<T> facetedSearchExpression)
SimpleRangeStats
of the range facet.
This method should only be used when the range facet has the form (* to "0"),("0" to *)
,
which is obtained when calling RangeTermFacetedSearchSearchModel.allRanges()
.facetedSearchExpression
- the range facet search expressionSimpleRangeStats
for the given range facetIllegalArgumentException
- if the given range facet has an invalid form@Nullable TermFacetResult getTermFacetResult(String facetResultPath)
TermFacetResult
of the facet with the given facet expression.facetResultPath
- the facet result path@Nullable RangeFacetResult getRangeFacetResult(String facetResultPath)
RangeFacetResult
of the facet with the given facet expression.facetResultPath
- the facet result path@Nullable FilteredFacetResult getFilteredFacetResult(String facetResultPath)
FilteredFacetResult
of the facet with the given facet expression.facetResultPath
- the facet result pathList<T> getResults()
PagedResult
PagedResult.getCount()
is not equal
to PagedResult.getTotal()
the container contains only a subset of all
elements that match the request.getResults
in interface PagedResult<T>
PagedResult.getCount()
elements matching the requestLong getOffset()
PagedResult
getOffset
in interface PagedResult<T>
Long getTotal()
PagedResult
getTotal
in interface PagedResult<T>