Package org.elasticsearch.search.runtime
Class DoubleScriptFieldTermsQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<DoubleFieldScript>
org.elasticsearch.search.runtime.DoubleScriptFieldTermsQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorDescriptionDoubleScriptFieldTermsQuery(Script script, DoubleFieldScript.LeafFactory leafFactory, String fieldName, com.carrotsearch.hppc.LongSet terms)
Build the query. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected boolean
matches(double[] values, int count)
Does the value match this query?protected boolean
matches(DoubleFieldScript scriptContext, int docId)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
DoubleScriptFieldTermsQuery
public DoubleScriptFieldTermsQuery(Script script, DoubleFieldScript.LeafFactory leafFactory, String fieldName, com.carrotsearch.hppc.LongSet terms)Build the query.- Parameters:
terms
- The terms converted to a long withDouble.doubleToLongBits(double)
.
-
-
Method Details
-
matches
protected boolean matches(double[] values, int count)Does the value match this query? -
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractScriptFieldQuery<DoubleFieldScript>
-
equals
- Overrides:
equals
in classAbstractScriptFieldQuery<DoubleFieldScript>
-
matches
- Specified by:
matches
in classAbstractScriptFieldQuery<DoubleFieldScript>
-
visit
public final void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visit
in classorg.apache.lucene.search.Query
-