Class StatsOptions
java.lang.Object
org.springframework.data.solr.core.query.StatsOptions
- Direct Known Subclasses:
StatsOptions.FieldStatsOptions
Set of options available to get field statistics.
- Since:
- 1.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSet of options available to get field's statistics having a field as context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a facet on field to the statistics to be requested.Adds a facet on field to the statistics to be requested.Adds a field via its name to the statistics to be requested.Adds a field to the statistics to be requested.booleanisSelectiveCalcDistincts(Field field) setCalcDistinct(boolean calcDistinct) Sets the distinct calculation for a given stats request.
-
Constructor Details
-
StatsOptions
public StatsOptions()
-
-
Method Details
-
addField
Adds a field to the statistics to be requested.- Parameters:
field-- Returns:
-
addField
Adds a field via its name to the statistics to be requested.- Parameters:
fieldName-- Returns:
-
getFields
- Returns:
- fields to request statistics of
-
addFacet
Adds a facet on field to the statistics to be requested.- Returns:
-
addFacet
Adds a facet on field to the statistics to be requested.- Parameters:
fieldName-- Returns:
-
getFacets
- Returns:
- the fields to facet on.
-
getSelectiveFacets
- Returns:
- the selective facets to be requested.
-
setCalcDistinct
Sets the distinct calculation for a given stats request.- Parameters:
calcDistinct-- Returns:
-
isCalcDistinct
public boolean isCalcDistinct()- Returns:
- true if distinct shall be calculated for the stats request.
-
getSelectiveCalcDistincts
- Returns:
- the selective distinct calculation to be requested.
-
isSelectiveCalcDistincts
- Parameters:
field-- Returns:
- true if a distinct calculation shall be done selectively to the given field.
-