|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Scorer.ScorerVisitor<P,C,S>
public abstract static class Scorer.ScorerVisitor<P extends Query,C extends Query,S extends Scorer>
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.
| Constructor Summary | |
|---|---|
Scorer.ScorerVisitor()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scorer.ScorerVisitor()
| Method Detail |
|---|
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 scorer
public 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
public void visitProhibited(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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||