public class FieldFacetAccumulator extends ValueAccumulator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dateField |
protected boolean |
multiValued |
protected String |
name |
protected boolean |
numField |
protected org.apache.lucene.index.NumericDocValues |
numValues |
protected org.apache.lucene.util.Bits |
numValuesBits |
protected FacetValueAccumulator |
parent |
protected AnalyticsParsers.Parser |
parser |
protected SchemaField |
schemaField |
protected SolrIndexSearcher |
searcher |
protected org.apache.lucene.index.SortedSetDocValues |
setValues |
protected org.apache.lucene.index.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(org.apache.lucene.index.LeafReaderContext context)
Move to the next set of documents to add to the field facet.
|
NamedList<?> |
export() |
boolean |
needsScores() |
postProcessprotected 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 org.apache.lucene.index.SortedSetDocValues setValues
protected org.apache.lucene.index.SortedDocValues sortValues
protected org.apache.lucene.index.NumericDocValues numValues
protected org.apache.lucene.util.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(org.apache.lucene.index.LeafReaderContext context)
throws IOException
doSetNextReader in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface org.apache.lucene.search.LeafCollectorcollect in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic void compute()
ValueAccumulatorexport().compute in class ValueAccumulatorpublic NamedList<?> export()
export in class ValueAccumulatorpublic boolean needsScores()
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.