Package org.elasticsearch.search.runtime
Class IpScriptFieldRangeQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<IpFieldScript>
org.elasticsearch.search.runtime.IpScriptFieldRangeQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorDescriptionIpScriptFieldRangeQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.BytesRef lower, org.apache.lucene.util.BytesRef upper)
-
Method Summary
Modifier and TypeMethodDescriptionprotected static InetAddress
decode(org.apache.lucene.util.BytesRef ref)
boolean
int
hashCode()
protected boolean
matches(org.apache.lucene.util.BytesRef[] values, int count)
Does the value match this query?protected boolean
matches(IpFieldScript scriptContext, int docId)
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visit
-
Constructor Details
-
IpScriptFieldRangeQuery
public IpScriptFieldRangeQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.BytesRef lower, org.apache.lucene.util.BytesRef upper)
-
-
Method Details
-
matches
protected boolean matches(org.apache.lucene.util.BytesRef[] 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<IpFieldScript>
-
equals
- Overrides:
equals
in classAbstractScriptFieldQuery<IpFieldScript>
-
matches
- Specified by:
matches
in classAbstractScriptFieldQuery<IpFieldScript>
-
decode
-