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() |
postProcess
getLeafCollector, setScorer
protected 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
IOException
public static FieldFacetAccumulator create(SolrIndexSearcher searcher, FacetValueAccumulator parent, SchemaField facetField) throws IOException
IOException
protected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader
in class SimpleCollector
IOException
public void collect(int doc) throws IOException
collect
in interface LeafCollector
collect
in class SimpleCollector
IOException
public void compute()
ValueAccumulator
export()
.compute
in class ValueAccumulator
public NamedList<?> export()
export
in class ValueAccumulator
public boolean needsScores()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.