static class ToChildBlockJoinQuery.ToChildBlockJoinScorer extends Scorer
Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
private int |
childDoc |
private boolean |
doScores |
private BitSet |
parentBits |
private int |
parentDoc |
private int |
parentFreq |
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.
|
int |
freq()
Returns the freq of this Scorer on the current document
|
java.util.Collection<Scorer.ChildScorer> |
getChildren()
Returns child sub-scorers
|
(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.
|
getWeight, twoPhaseIteratorprivate final Scorer parentScorer
private final DocIdSetIterator parentIt
private final BitSet parentBits
private final boolean doScores
private float parentScore
private int parentFreq
private int childDoc
private int parentDoc
public java.util.Collection<Scorer.ChildScorer> getChildren()
ScorergetChildren in class Scorerpublic 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()
Scorer-1 if the Scorer.iterator() is not positioned
or DocIdSetIterator.NO_MORE_DOCS if it has been entirely consumed.docID in class ScorerDocIdSetIterator.docID()public float score()
throws java.io.IOException
ScorerDocIdSetIterator.nextDoc() or
DocIdSetIterator.advance(int) is called on the Scorer.iterator()
the first time, or when called from within LeafCollector.collect(int).public int freq()
throws java.io.IOException
Scorerint getParentDoc()