public class StatsField extends Object
StatsParams.STATS_FIELD
instance.StatsComponent| Constructor and Description |
|---|
StatsField(ResponseBuilder rb,
String statsParam) |
| Modifier and Type | Method and Description |
|---|---|
DocSet |
computeBaseDocSet()
Computes a base
DocSet for the current request to be used
when computing global stats for the local index. |
StatsValues |
computeLocalStatsValues(DocSet base)
|
boolean |
getCalcDistinct()
Whether or not the effective value of the
StatsParams.STATS_CALC_DISTINCT param
is true or false for this StatsField |
String |
getOutputKey()
The key to be used when refering to this
StatsField instance in the
response tp clients. |
SchemaField |
getSchemaField()
The
SchemaField whose results these stats are computed over, may be null
if the stats are computed over the results of a function or query |
SolrIndexSearcher |
getSearcher()
The searcher that should be used for processing local stats
|
List<String> |
getTagList() |
ValueSource |
getValueSource()
The
ValueSource of a function or query whose results these stats are computed
over, may be null if the stats are directly over a SchemaField |
String |
toString() |
public StatsField(ResponseBuilder rb, String statsParam)
rb - the current request/responsestatsParam - the raw StatsParams.STATS_FIELD stringpublic String getOutputKey()
StatsField instance in the
response tp clients.public DocSet computeBaseDocSet() throws IOException
DocSet for 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 ResponseBuilder
unless tagged filter queries have been excluded using
the ex local paramIOExceptionpublic StatsValues computeLocalStatsValues(DocSet base) throws IOException
IOExceptioncomputeBaseDocSet()public SolrIndexSearcher getSearcher()
SolrQueryRequest.getSearcher()public SchemaField getSchemaField()
SchemaField whose results these stats are computed over, may be null
if the stats are computed over the results of a function or querygetValueSource()public ValueSource getValueSource()
ValueSource of a function or query whose results these stats are computed
over, may be null if the stats are directly over a SchemaFieldgetValueSource()public boolean getCalcDistinct()
StatsParams.STATS_CALC_DISTINCT param
is true or false for this StatsFieldCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.