static class ToChildBlockJoinQuery.ToChildBlockJoinScorer extends Scorer
Scorable.ChildScorable| Modifier and Type | Field and Description |
|---|---|
private int |
childDoc |
private boolean |
doScores |
private BitSet |
parentBits |
private int |
parentDoc |
private DocIdSetIterator |
parentIt |
private float |
parentScore |
private Scorer |
parentScorer |
| Constructor and Description |
|---|
ToChildBlockJoinScorer(Weight weight,
Scorer parentScorer,
BitSet parentBits,
boolean doScores) |
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
java.util.Collection<Scorable.ChildScorable> |
getChildren()
Returns child sub-scorers positioned on the current document
|
float |
getMaxScore(int upTo)
Return the maximum score that documents between the last
target
that this iterator was shallow-advanced to
included and upTo included. |
(package private) int |
getParentDoc() |
DocIdSetIterator |
iterator()
Return a
DocIdSetIterator over matching documents. |
float |
score()
Returns the score of the current document matching the query.
|
private void |
validateParentDoc()
Detect mis-use, where provided parent query in fact
sometimes returns child documents.
|
advanceShallow, getWeight, twoPhaseIteratorsetMinCompetitiveScoreprivate final Scorer parentScorer
private final DocIdSetIterator parentIt
private final BitSet parentBits
private final boolean doScores
private float parentScore
private int childDoc
private int parentDoc
public java.util.Collection<Scorable.ChildScorable> getChildren()
ScorablegetChildren in class Scorablepublic DocIdSetIterator iterator()
ScorerDocIdSetIterator over matching documents.
The returned iterator will either be positioned on -1 if no
documents have been scored yet, DocIdSetIterator.NO_MORE_DOCS
if all documents have been scored already, or the last document id that
has been scored otherwise.
The returned iterator is a view: calling this method several times will
return iterators that have the same state.private void validateParentDoc()
public int docID()
Scorablepublic float score()
throws java.io.IOException
Scorablepublic float getMaxScore(int upTo)
throws java.io.IOException
Scorertarget
that this iterator was shallow-advanced to
included and upTo included.getMaxScore in class Scorerjava.io.IOExceptionint getParentDoc()