public static abstract class

Scorer.ScorerVisitor

extends Object
java.lang.Object
   ↳ org.apache.lucene.search.Scorer.ScorerVisitor<P extends org.apache.lucene.search.Query, C extends org.apache.lucene.search.Query, S extends org.apache.lucene.search.Scorer>

Class Overview

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.

Summary

Public Constructors
Scorer.ScorerVisitor()
Public Methods
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
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Scorer.ScorerVisitor ()

Public Methods

public void visitOptional (P parent, C child, S scorer)

Invoked for all optional scorer

Parameters
parent the parent query of the child query or null if the child is a top-level query
child the query of the currently visited scorer
scorer the current scorer

public void visitProhibited (P parent, C child, S scorer)

Invoked for all prohibited scorer

Parameters
parent the parent query of the child query or null if the child is a top-level query
child the query of the currently visited scorer
scorer the current scorer

public void visitRequired (P parent, C child, S scorer)

Invoked for all required scorer

Parameters
parent the parent query of the child query or null if the child is a top-level query
child the query of the currently visited scorer
scorer the current scorer