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 class
protected static final class
protected static final class
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override and implement query instance equivalence properly in a subclass.getField()
Returns the field name for this querygetQuery()
Returns the encapsulated queryint
hashCode()
Override and implement query hash code properly in a subclass.long
Return the memory usage of this object in bytes.Prints a query to a string, withfield
assumed to be the default field and omitted.void
visit
(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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-
toString
Description copied from class:Query
Prints a query to a string, withfield
assumed to be the default field and omitted. -
equals
Description copied from class:Query
Override and implement query instance equivalence properly in a subclass. This is required so thatQueryCache
works 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:Query
Override and implement query hash code properly in a subclass. This is required so thatQueryCache
works properly. -
getQuery
Returns the encapsulated query -
getField
Returns the field name for this query -
visit
Description copied from class:Query
Recurse through the query tree, visiting any child queries.
-