Module org.apache.lucene.core
Package org.apache.lucene.search
Class AbstractMultiTermQueryConstantScoreWrapper<Q extends MultiTermQuery>
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.AbstractMultiTermQueryConstantScoreWrapper<Q>
- All Implemented Interfaces:
Accountable
- Direct Known Subclasses:
MultiTermQueryConstantScoreBlendedWrapper,MultiTermQueryConstantScoreWrapper
abstract class AbstractMultiTermQueryConstantScoreWrapper<Q extends MultiTermQuery>
extends Query
implements Accountable
Contains functionality common to both
MultiTermQueryConstantScoreBlendedWrapper and
MultiTermQueryConstantScoreWrapper. Internal implementation detail only. Not meant as an
extension point for users.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static final classprotected static final class -
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride and implement query instance equivalence properly in a subclass.getField()Returns the field name for this querygetQuery()Returns the encapsulated queryinthashCode()Override and implement query hash code properly in a subclass.longReturn the memory usage of this object in bytes.Prints a query to a string, withfieldassumed to be the default field and omitted.voidvisit(QueryVisitor visitor) Recurse through the query tree, visiting any child queries.Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, rewrite, sameClassAs, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD
static final int BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD- See Also:
-
query
-
-
Constructor Details
-
AbstractMultiTermQueryConstantScoreWrapper
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
toString
Description copied from class:QueryPrints a query to a string, withfieldassumed to be the default field and omitted. -
equals
Description copied from class:QueryOverride and implement query instance equivalence properly in a subclass. This is required so thatQueryCacheworks properly.Typically a query will be equal to another only if it's an instance of the same class and its document-filtering properties are identical to those of the other instance. Utility methods are provided for certain repetitive code.
-
hashCode
public int hashCode()Description copied from class:QueryOverride and implement query hash code properly in a subclass. This is required so thatQueryCacheworks properly. -
getQuery
Returns the encapsulated query -
getField
Returns the field name for this query -
visit
Description copied from class:QueryRecurse through the query tree, visiting any child queries.
-