Module org.apache.lucene.core
Package org.apache.lucene.util
Class RamUsageEstimator.RamUsageQueryVisitor
java.lang.Object
org.apache.lucene.search.QueryVisitor
org.apache.lucene.util.RamUsageEstimator.RamUsageQueryVisitor
- Enclosing class:
RamUsageEstimator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) Query(package private) longFields inherited from class org.apache.lucene.search.QueryVisitor
EMPTY_VISITOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeTerms(Query query, Term... terms) Called by leaf queries that match on specific termsgetSubVisitor(BooleanClause.Occur occur, Query parent) Pulls a visitor instance for visiting child clauses of a queryvoidCalled by leaf queries that do not match on termsMethods inherited from class org.apache.lucene.search.QueryVisitor
acceptField, consumeTermsMatching, termCollector
-
Field Details
-
total
long total -
defSize
long defSize -
root
Query root
-
-
Constructor Details
-
RamUsageQueryVisitor
RamUsageQueryVisitor(Query root, long defSize)
-
-
Method Details
-
consumeTerms
Description copied from class:QueryVisitorCalled by leaf queries that match on specific terms- Overrides:
consumeTermsin classQueryVisitor- Parameters:
query- the leaf queryterms- the terms the query will match on
-
visitLeaf
Description copied from class:QueryVisitorCalled by leaf queries that do not match on terms- Overrides:
visitLeafin classQueryVisitor- Parameters:
query- the query
-
getSubVisitor
Description copied from class:QueryVisitorPulls a visitor instance for visiting child clauses of a queryThe default implementation returns
this, unlessoccuris equal toBooleanClause.Occur.MUST_NOTin which case it returnsQueryVisitor.EMPTY_VISITOR- Overrides:
getSubVisitorin classQueryVisitor- Parameters:
occur- the relationship between the parent and its childrenparent- the query visited
-