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.LeafCollectorcollect in class org.apache.lucene.search.SimpleCollectorIOExceptionprotected void newParent(long parentIdx)
throws IOException
IOExceptionprotected void existingParent(long parentIdx)
throws IOException
IOExceptionpublic long foundParents()
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
throws IOException
doSetNextReader in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in interface org.apache.lucene.search.LeafCollectorsetScorer in class org.apache.lucene.search.SimpleCollectorIOExceptionpublic boolean needsScores()
needsScores in interface org.apache.lucene.search.Collectorpublic void close()
close in interface AutoCloseableclose in interface ReleasableCopyright © 2009–2017. All rights reserved.