public abstract static class Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer> extends Object
| Constructor and Description |
|---|
Scorer.ScorerVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
visitOptional(P parent,
C child,
S scorer)
Invoked for all optional scorer
|
void |
visitProhibited(P parent,
C child,
S scorer)
Invoked for all prohibited scorer
|
void |
visitRequired(P parent,
C child,
S scorer)
Invoked for all required scorer
|
public void visitOptional(P parent, C child, S scorer)
parent - the parent query of the child query or null if the child is a top-level querychild - the query of the currently visited scorerscorer - the current scorerpublic void visitRequired(P parent, C child, S scorer)
parent - the parent query of the child query or null if the child is a top-level querychild - the query of the currently visited scorerscorer - the current scorer