org.elasticsearch.search.facet.terms.ints
Class TermsIntFacetCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.elasticsearch.search.facet.FacetCollector
          extended by org.elasticsearch.search.facet.AbstractFacetCollector
              extended by org.elasticsearch.search.facet.terms.ints.TermsIntFacetCollector

public class TermsIntFacetCollector
extends AbstractFacetCollector


Nested Class Summary
static class TermsIntFacetCollector.AggregatorValueProc
           
static class TermsIntFacetCollector.StaticAggregatorValueProc
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.search.facet.AbstractFacetCollector
facetName, filter
 
Constructor Summary
TermsIntFacetCollector(java.lang.String facetName, java.lang.String fieldName, int size, TermsFacet.ComparatorType comparatorType, boolean allTerms, SearchContext context, org.elasticsearch.common.collect.ImmutableSet<java.lang.String> excluded, java.lang.String scriptLang, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> params)
           
 
Method Summary
protected  void doCollect(int doc)
           
protected  void doSetNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
           
 Facet facet()
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
Methods inherited from class org.elasticsearch.search.facet.AbstractFacetCollector
acceptsDocsOutOfOrder, collect, getFilter, setFilter, setNextReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermsIntFacetCollector

public TermsIntFacetCollector(java.lang.String facetName,
                              java.lang.String fieldName,
                              int size,
                              TermsFacet.ComparatorType comparatorType,
                              boolean allTerms,
                              SearchContext context,
                              org.elasticsearch.common.collect.ImmutableSet<java.lang.String> excluded,
                              java.lang.String scriptLang,
                              java.lang.String script,
                              java.util.Map<java.lang.String,java.lang.Object> params)
Method Detail

setScorer

public void setScorer(org.apache.lucene.search.Scorer scorer)
               throws java.io.IOException
Overrides:
setScorer in class AbstractFacetCollector
Throws:
java.io.IOException

doSetNextReader

protected void doSetNextReader(org.apache.lucene.index.IndexReader reader,
                               int docBase)
                        throws java.io.IOException
Specified by:
doSetNextReader in class AbstractFacetCollector
Throws:
java.io.IOException

doCollect

protected void doCollect(int doc)
                  throws java.io.IOException
Specified by:
doCollect in class AbstractFacetCollector
Throws:
java.io.IOException

facet

public Facet facet()
Specified by:
facet in class FacetCollector