Package org.elasticsearch.search.runtime
Class IpScriptFieldRangeQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.IpScriptFieldRangeQuery
public class IpScriptFieldRangeQuery
extends org.apache.lucene.search.Query
-
Field Summary
Fields Modifier and Type Field Description protected static floatMATCH_COSTWe don't have the infrastructure to estimate the match cost of a script so we just use a big number. -
Constructor Summary
Constructors Constructor Description IpScriptFieldRangeQuery(Script script, IpFieldScript.LeafFactory leafFactory, java.lang.String fieldName, org.apache.lucene.util.BytesRef lower, org.apache.lucene.util.BytesRef upper) -
Method Summary
Modifier and Type Method Description org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)protected static java.net.InetAddressdecode(org.apache.lucene.util.BytesRef ref)booleanequals(java.lang.Object obj)inthashCode()protected booleanmatches(org.apache.lucene.util.BytesRef[] values, int count)Does the value match this query?protected booleanmatches(IpFieldScript scriptContext, int docId)java.lang.StringtoString(java.lang.String field)Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visitMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
MATCH_COST
protected static final float MATCH_COSTWe don't have the infrastructure to estimate the match cost of a script so we just use a big number.- See Also:
- Constant Field Values
-
-
Constructor Details
-
IpScriptFieldRangeQuery
public IpScriptFieldRangeQuery(Script script, IpFieldScript.LeafFactory leafFactory, java.lang.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
public final java.lang.String toString(java.lang.String field)- Specified by:
toStringin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode() -
equals
public boolean equals(java.lang.Object obj) -
matches
-
decode
protected static java.net.InetAddress decode(org.apache.lucene.util.BytesRef ref) -
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws java.io.IOException- Overrides:
createWeightin classorg.apache.lucene.search.Query- Throws:
java.io.IOException
-