Class SimpleFieldStatsResult
java.lang.Object
org.springframework.data.solr.core.query.result.SimpleStatsResult
org.springframework.data.solr.core.query.result.SimpleFieldStatsResult
- All Implemented Interfaces:
FieldStatsResult,StatsResult
Trivial implementation of
FieldStatsResult.- Since:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the count of distinct values for this field.Return the distinct values for this field.getFacetStatsResult(String fieldName) Return a map of value associated to its statistics for a given field name.getFacetStatsResult(Field field) Return a map of value associated to its statistics for a given field.Return a map of fieldName associated to value facets for the givenFieldStatsResult.voidsetCountDistinct(Long distinctCount) voidsetDistinctValues(Collection<Object> distinctValues) voidsetStatsResults(Map<String, Map<String, StatsResult>> statsResults) toString()Methods inherited from class org.springframework.data.solr.core.query.result.SimpleStatsResult
getCount, getMax, getMaxAsDate, getMaxAsDouble, getMaxAsString, getMean, getMeanAsDate, getMeanAsDouble, getMin, getMinAsDate, getMinAsDouble, getMinAsString, getMissing, getStddev, getSum, getSumOfSquares, setCount, setMax, setMean, setMin, setMissing, setStddev, setSum, setSumOfSquaresMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.solr.core.query.result.StatsResult
getCount, getMax, getMaxAsDate, getMaxAsDouble, getMaxAsString, getMean, getMeanAsDate, getMeanAsDouble, getMin, getMinAsDate, getMinAsDouble, getMinAsString, getMissing, getStddev, getSum, getSumOfSquares
-
Constructor Details
-
SimpleFieldStatsResult
public SimpleFieldStatsResult()
-
-
Method Details
-
getFacetStatsResults
Description copied from interface:FieldStatsResultReturn a map of fieldName associated to value facets for the givenFieldStatsResult.- Specified by:
getFacetStatsResultsin interfaceFieldStatsResult- Returns:
- map of field faceting statistics
-
setStatsResults
-
getFacetStatsResult
Description copied from interface:FieldStatsResultReturn a map of value associated to its statistics for a given field.- Specified by:
getFacetStatsResultin interfaceFieldStatsResult- Returns:
- map of values statistics
-
getFacetStatsResult
Description copied from interface:FieldStatsResultReturn a map of value associated to its statistics for a given field name.- Specified by:
getFacetStatsResultin interfaceFieldStatsResult- Returns:
- map of values statistics
-
getDistinctCount
Description copied from interface:FieldStatsResultReturn the count of distinct values for this field.- Specified by:
getDistinctCountin interfaceFieldStatsResult- Returns:
- distinct count, null when not requested
-
setCountDistinct
-
getDistinctValues
Description copied from interface:FieldStatsResultReturn the distinct values for this field.- Specified by:
getDistinctValuesin interfaceFieldStatsResult- Returns:
-
setDistinctValues
-
toString
- Overrides:
toStringin classSimpleStatsResult
-