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) |
acceptsDocsOutOfOrder
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 ParentCollector(IndexParentChildFieldData globalIfd, SearchContext searchContext, String parentType)
public final void collect(int doc) throws IOException
collect
in class NoopCollector
IOException
protected void newParent(long parentIdx) throws IOException
IOException
protected void existingParent(long parentIdx) throws IOException
IOException
public long foundParents()
public void setNextReader(org.apache.lucene.index.AtomicReaderContext context) throws IOException
setNextReader
in class NoopCollector
IOException
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in class NoopCollector
IOException
public void close() throws ElasticsearchException
close
in interface AutoCloseable
close
in interface Releasable
ElasticsearchException
Copyright © 2009–2015. All rights reserved.