Package org.elasticsearch.search.runtime
Class IpScriptFieldTermQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<IpFieldScript>
org.elasticsearch.search.runtime.IpScriptFieldTermQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST -
Constructor Summary
ConstructorsConstructorDescriptionIpScriptFieldTermQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.BytesRef term) -
Method Summary
Modifier and TypeMethodDescriptionprotected static InetAddressdecode(org.apache.lucene.util.BytesRef ref)booleaninthashCode()protected booleanmatches(org.apache.lucene.util.BytesRef[] values, int count)Does the value match this query?protected booleanmatches(IpFieldScript scriptContext, int docId)Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeightMethods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, visit
-
Constructor Details
-
IpScriptFieldTermQuery
public IpScriptFieldTermQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.BytesRef term)
-
-
Method Details
-
matches
protected boolean matches(org.apache.lucene.util.BytesRef[] values, int count)Does the value match this query? -
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractScriptFieldQuery<IpFieldScript>
-
equals
- Overrides:
equalsin classAbstractScriptFieldQuery<IpFieldScript>
-
matches
- Specified by:
matchesin classAbstractScriptFieldQuery<IpFieldScript>
-
decode
-