Class IndexFieldData.XFieldComparatorSource.Nested
- java.lang.Object
-
- org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource.Nested
-
- Enclosing class:
- IndexFieldData.XFieldComparatorSource
public static class IndexFieldData.XFieldComparatorSource.Nested extends java.lang.ObjectSimple wrapper class around a filter that matches parent documents and a filter that matches child documents. For every root document R, R will be in the parent filter and its children documents will be the documents that are contained in the inner set between the previous parent + 1, or 0 if there is no previous parent, and R (excluded).
-
-
Constructor Summary
Constructors Constructor Description Nested(org.apache.lucene.search.join.BitSetProducer rootFilter, org.apache.lucene.search.Query innerQuery, NestedSortBuilder nestedSort, java.util.function.Function<org.apache.lucene.index.IndexReaderContext,org.apache.lucene.search.IndexSearcher> searcherFactory)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.QuerygetInnerQuery()NestedSortBuildergetNestedSort()org.apache.lucene.search.join.BitSetProducergetRootFilter()org.apache.lucene.search.DocIdSetIteratorinnerDocs(org.apache.lucene.index.LeafReaderContext ctx)Get aDocIdSetthat matches the inner documents.org.apache.lucene.util.BitSetrootDocs(org.apache.lucene.index.LeafReaderContext ctx)Get aBitDocIdSetthat matches the root documents.
-
-
-
Constructor Detail
-
Nested
public Nested(org.apache.lucene.search.join.BitSetProducer rootFilter, org.apache.lucene.search.Query innerQuery, NestedSortBuilder nestedSort, java.util.function.Function<org.apache.lucene.index.IndexReaderContext,org.apache.lucene.search.IndexSearcher> searcherFactory)
-
-
Method Detail
-
getInnerQuery
public org.apache.lucene.search.Query getInnerQuery()
-
getRootFilter
public org.apache.lucene.search.join.BitSetProducer getRootFilter()
-
getNestedSort
public NestedSortBuilder getNestedSort()
-
rootDocs
public org.apache.lucene.util.BitSet rootDocs(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOExceptionGet aBitDocIdSetthat matches the root documents.- Throws:
java.io.IOException
-
innerDocs
public org.apache.lucene.search.DocIdSetIterator innerDocs(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOExceptionGet aDocIdSetthat matches the inner documents.- Throws:
java.io.IOException
-
-