org.elasticsearch.index.search.child
Class ChildCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.elasticsearch.index.search.child.ChildCollector

public class ChildCollector
extends org.apache.lucene.search.Collector


Constructor Summary
ChildCollector(String parentType, SearchContext context)
           
 
Method Summary
 boolean acceptsDocsOutOfOrder()
           
 void collect(int doc)
           
 Map<Object,org.apache.lucene.util.FixedBitSet> parentDocs()
           
 void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildCollector

public ChildCollector(String parentType,
                      SearchContext context)
Method Detail

parentDocs

public Map<Object,org.apache.lucene.util.FixedBitSet> parentDocs()

setScorer

public void setScorer(org.apache.lucene.search.Scorer scorer)
               throws IOException
Specified by:
setScorer in class org.apache.lucene.search.Collector
Throws:
IOException

collect

public void collect(int doc)
             throws IOException
Specified by:
collect in class org.apache.lucene.search.Collector
Throws:
IOException

setNextReader

public void setNextReader(org.apache.lucene.index.IndexReader reader,
                          int docBase)
                   throws IOException
Specified by:
setNextReader in class org.apache.lucene.search.Collector
Throws:
IOException

acceptsDocsOutOfOrder

public boolean acceptsDocsOutOfOrder()
Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector


Copyright © 2009-2012. All Rights Reserved.