protected abstract static class ChildrenQuery.ParentCollector extends NoopCollector 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 |
NOOP_COLLECTOR| Modifier | Constructor and Description |
|---|---|
protected |
ParentCollector(IndexParentChildFieldData globalIfd,
SearchContext searchContext,
String parentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collect(int doc) |
protected void |
existingParent(long parentIdx) |
long |
foundParents() |
protected void |
newParent(long parentIdx) |
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext context) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
acceptsDocsOutOfOrderprotected 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 ParentCollector(IndexParentChildFieldData globalIfd, SearchContext searchContext, String parentType)
public final void collect(int doc)
throws IOException
collect in class NoopCollectorIOExceptionprotected void newParent(long parentIdx)
throws IOException
IOExceptionprotected void existingParent(long parentIdx)
throws IOException
IOExceptionpublic long foundParents()
public void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
throws IOException
setNextReader in class NoopCollectorIOExceptionpublic void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in class NoopCollectorIOExceptionpublic void close()
throws ElasticsearchException
close in interface AutoCloseableclose in interface ReleasableElasticsearchExceptionCopyright © 2009–2016. All rights reserved.