Class StatsField
java.lang.Object
org.apache.solr.handler.component.StatsField
Models all of the information associated with a single
StatsParams.STATS_FIELD instance.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper Struct for parsing and encapsulating all of the options relaed to building aHLLstatic enumAn enumeration representing the sumer set of all possible stat values that can be computed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<StatsField.Stat> The set of stats computed by default when no localparams are used to specify explicit stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanComputes a baseDocSetfor the current request to be used when computing global stats for the local index.booleanThe key to be used when refering to thisStatsFieldinstance in the response tp clients.TheSchemaFieldwhose results these stats are computed over, may be null if the stats are computed over the results of a function or queryThe searcher that should be used for processing local statsdoubleorg.apache.lucene.queries.function.ValueSourceTheValueSourceof a function or query whose results these stats are computed over, may be null if the stats are directly over aSchemaFieldbooleantoString()
-
Field Details
-
DEFAULT_STATS
The set of stats computed by default when no localparams are used to specify explicit stats
-
-
Constructor Details
-
StatsField
- Parameters:
rb- the current request/responsestatsParam- the rawStatsParams.STATS_FIELDstring
-
-
Method Details
-
getOutputKey
The key to be used when refering to thisStatsFieldinstance in the response tp clients. -
computeBaseDocSet
Computes a baseDocSetfor the current request to be used when computing global stats for the local index.This is typically the same as the main DocSet for the
ResponseBuilderunlesstagged filter queries have been excluded using theexlocal param- Throws:
IOException
-
computeLocalStatsValues
- Throws:
IOException- See Also:
-
getSearcher
The searcher that should be used for processing local stats- See Also:
-
getSchemaField
TheSchemaFieldwhose results these stats are computed over, may be null if the stats are computed over the results of a function or query- See Also:
-
getValueSource
public org.apache.lucene.queries.function.ValueSource getValueSource()TheValueSourceof a function or query whose results these stats are computed over, may be null if the stats are directly over aSchemaField- See Also:
-
getTagList
-
toString
-
calculateStats
-
includeInResponse
-
getPercentilesList
-
getIsShard
public boolean getIsShard() -
getTdigestCompression
public double getTdigestCompression() -
getHllOptions
-