protected abstract static class ChildrenQuery.ParentCollector extends org.apache.lucene.search.SimpleCollector implements Releasable
Modifier and Type | Field and Description |
---|---|
protected BigArrays |
bigArrays |
protected IndexParentChildFieldData |
globalIfd |
protected LongHash |
parentIdxs |
protected String |
parentType |
protected org.apache.lucene.search.Scorer |
scorer |
protected SearchContext |
searchContext |
protected org.apache.lucene.index.SortedDocValues |
values |
Modifier | Constructor and Description |
---|---|
protected |
ChildrenQuery.ParentCollector(IndexParentChildFieldData globalIfd,
SearchContext searchContext,
String parentType) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
collect(int doc) |
protected void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
protected void |
existingParent(long parentIdx) |
long |
foundParents() |
boolean |
needsScores() |
protected void |
newParent(long parentIdx) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
protected final IndexParentChildFieldData globalIfd
protected final LongHash parentIdxs
protected final BigArrays bigArrays
protected final SearchContext searchContext
protected final String parentType
protected org.apache.lucene.index.SortedDocValues values
protected org.apache.lucene.search.Scorer scorer
protected ChildrenQuery.ParentCollector(IndexParentChildFieldData globalIfd, SearchContext searchContext, String parentType)
public final void collect(int doc) throws IOException
collect
in interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
IOException
protected void newParent(long parentIdx) throws IOException
IOException
protected void existingParent(long parentIdx) throws IOException
IOException
public long foundParents()
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
IOException
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in interface org.apache.lucene.search.LeafCollector
setScorer
in class org.apache.lucene.search.SimpleCollector
IOException
public boolean needsScores()
needsScores
in interface org.apache.lucene.search.Collector
public void close()
close
in interface AutoCloseable
close
in interface Releasable
Copyright © 2009–2016. All rights reserved.