Class ChildDocIds
java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.join.impl.ChildDocIds
A provider of children docIds for a given parent docId.
-
Constructor Summary
ConstructorsConstructorDescriptionChildDocIds(org.apache.lucene.util.BitSet parentDocs, org.apache.lucene.search.DocIdSetIterator childDocs) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceExactParent(int parentDocId) intintnextChild(int target)
-
Constructor Details
-
ChildDocIds
public ChildDocIds(org.apache.lucene.util.BitSet parentDocs, org.apache.lucene.search.DocIdSetIterator childDocs)
-
-
Method Details
-
advanceExactParent
- Parameters:
parentDocId- The docID of a parent document. Must be strictly greater than the docId passed to this method the last time it was invoked.- Returns:
trueif there is at least one child for the given parent.- Throws:
IOException- If advancing underlying iterators throws an exception.
-
nextChild
- Returns:
- The docId of the next child of the parent doc set by the last call to
advanceExactParent(int), orDocIdSetIterator.NO_MORE_DOCSif there isn't any more child for this parent doc. - Throws:
IOException- If advancing underlying iterators throws an exception.
-
nextChild
- Parameters:
target- The docID of a document. Must be greater than or equal to the docId of the last retrieved child.- Returns:
- The docId of the next child of the parent doc set by the last call to
advanceExactParent(int), beyondpreviousIdExcluded, orDocIdSetIterator.NO_MORE_DOCSif there isn't any more child for this parent doc beyondpreviousIdExcluded. - Throws:
IOException- If advancing underlying iterators throws an exception.
-