Package org.apache.lucene.search
Class Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer>
- java.lang.Object
-
- org.apache.lucene.search.Scorer.ScorerVisitor<P,C,S>
-
- Enclosing class:
- Scorer
public abstract static class Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer> extends Object
A callback to gather information from a scorer and its sub-scorers. Each the top-level scorer as well as each of its sub-scorers are passed to either one of the visit methods depending on their boolean relationship in the query.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description ScorerVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitOptional(P parent, C child, S scorer)
Invoked for all optional scorervoid
visitProhibited(P parent, C child, S scorer)
Invoked for all prohibited scorervoid
visitRequired(P parent, C child, S scorer)
Invoked for all required scorer
-
-
-
Method Detail
-
visitOptional
public void visitOptional(P parent, C child, S scorer)
Invoked for all optional scorer- Parameters:
parent
- the parent query of the child query ornull
if the child is a top-level querychild
- the query of the currently visited scorerscorer
- the current scorer
-
visitRequired
public void visitRequired(P parent, C child, S scorer)
Invoked for all required scorer- Parameters:
parent
- the parent query of the child query ornull
if the child is a top-level querychild
- the query of the currently visited scorerscorer
- the current scorer
-
-