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 Object
Simple 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(BitSetProducer rootFilter, Query innerQuery, NestedSortBuilder nestedSort, IndexSearcher searcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerygetInnerQuery()NestedSortBuildergetNestedSort()DocIdSetIteratorinnerDocs(LeafReaderContext ctx)Get aDocIdSetthat matches the inner documents.BitSetrootDocs(LeafReaderContext ctx)Get aBitDocIdSetthat matches the root documents.
-
-
-
Constructor Detail
-
Nested
public Nested(BitSetProducer rootFilter, Query innerQuery, NestedSortBuilder nestedSort, IndexSearcher searcher)
-
-
Method Detail
-
getInnerQuery
public Query getInnerQuery()
-
getNestedSort
public NestedSortBuilder getNestedSort()
-
rootDocs
public BitSet rootDocs(LeafReaderContext ctx) throws IOException
Get aBitDocIdSetthat matches the root documents.- Throws:
IOException
-
innerDocs
public DocIdSetIterator innerDocs(LeafReaderContext ctx) throws IOException
Get aDocIdSetthat matches the inner documents.- Throws:
IOException
-
-