public class FieldFacetAccumulator extends ValueAccumulator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dateField |
protected boolean |
multiValued |
protected String |
name |
protected boolean |
numField |
protected NumericDocValues |
numValues |
protected Bits |
numValuesBits |
protected FacetValueAccumulator |
parent |
protected AnalyticsParsers.Parser |
parser |
protected SchemaField |
schemaField |
protected SolrIndexSearcher |
searcher |
protected SortedSetDocValues |
setValues |
protected SortedDocValues |
sortValues |
| Constructor and Description |
|---|
FieldFacetAccumulator(SolrIndexSearcher searcher,
FacetValueAccumulator parent,
SchemaField schemaField) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Tell the FacetingAccumulator to collect the doc with the
given fieldFacet and value(s).
|
void |
compute()
Finalizes the statistics within each StatsCollector.
|
static FieldFacetAccumulator |
create(SolrIndexSearcher searcher,
FacetValueAccumulator parent,
SchemaField facetField) |
protected void |
doSetNextReader(LeafReaderContext context)
Move to the next set of documents to add to the field facet.
|
NamedList<?> |
export() |
boolean |
needsScores() |
postProcessgetLeafCollector, setScorerprotected final AnalyticsParsers.Parser parser
protected final FacetValueAccumulator parent
protected final String name
protected final SolrIndexSearcher searcher
protected final SchemaField schemaField
protected final boolean multiValued
protected final boolean numField
protected final boolean dateField
protected SortedSetDocValues setValues
protected SortedDocValues sortValues
protected NumericDocValues numValues
protected Bits numValuesBits
public FieldFacetAccumulator(SolrIndexSearcher searcher, FacetValueAccumulator parent, SchemaField schemaField) throws IOException
IOExceptionpublic static FieldFacetAccumulator create(SolrIndexSearcher searcher, FacetValueAccumulator parent, SchemaField facetField) throws IOException
IOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionpublic void compute()
ValueAccumulatorexport().compute in class ValueAccumulatorpublic NamedList<?> export()
export in class ValueAccumulatorpublic boolean needsScores()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.