Interface StatsPage<T>
- Type Parameters:
T-
- All Superinterfaces:
Iterable<T>,org.springframework.data.domain.Page<T>,org.springframework.data.domain.Slice<T>,org.springframework.data.util.Streamable<T>,Supplier<Stream<T>>
- All Known Implementing Classes:
SolrResultPage
public interface StatsPage<T>
extends org.springframework.data.domain.Page<T>
Representation of a Stats result page, holding one
FieldStatsResult for each field statistic requested on a
Query through StatsOptions.- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptiongetFieldStatsResult(String fieldName) Get the stats result done for the field with the given fieldName.getFieldStatsResult(Field field) Get the stats result done for the givenField.Get all field stats results for this page.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.domain.Page
getTotalElements, getTotalPages, mapMethods inherited from interface org.springframework.data.domain.Slice
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageableMethods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Method Details
-
getFieldStatsResult
Get the stats result done for the givenField.- Parameters:
field-- Returns:
-
getFieldStatsResult
Get the stats result done for the field with the given fieldName.- Parameters:
fieldName-- Returns:
-
getFieldStatsResults
Map<String,FieldStatsResult> getFieldStatsResults()Get all field stats results for this page.- Returns:
-