Module org.elasticsearch.server
Package org.elasticsearch.search.runtime
Class IpScriptFieldTermsQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<IpFieldScript>
org.elasticsearch.search.runtime.IpScriptFieldTermsQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST -
Constructor Summary
ConstructorsConstructorDescriptionIpScriptFieldTermsQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, BytesRefHash terms) -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.apache.lucene.search.TwoPhaseIteratorcreateTwoPhaseIterator(IpFieldScript scriptContext, org.apache.lucene.search.DocIdSetIterator approximation) Creates theTwoPhaseIteratorfor the current leaf reader.protected static InetAddressdecode(org.apache.lucene.util.BytesRef ref) booleaninthashCode()protected final booleanmatches(org.apache.lucene.util.BytesRef[] values, int count) Does the value match this query?protected final booleanmatches(IpFieldScript scriptContext, int docId) final StringMethods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight, fieldName, script, visitMethods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
IpScriptFieldTermsQuery
public IpScriptFieldTermsQuery(Script script, IpFieldScript.LeafFactory leafFactory, String fieldName, BytesRefHash terms)
-
-
Method Details
-
matches
protected final boolean matches(org.apache.lucene.util.BytesRef[] values, int count) Does the value match this query? -
createTwoPhaseIterator
protected final org.apache.lucene.search.TwoPhaseIterator createTwoPhaseIterator(IpFieldScript scriptContext, org.apache.lucene.search.DocIdSetIterator approximation) Description copied from class:AbstractScriptFieldQueryCreates theTwoPhaseIteratorfor the current leaf reader. Override to inject custom behaviour or provide additional context to the matches method when needed.- Overrides:
createTwoPhaseIteratorin classAbstractScriptFieldQuery<IpFieldScript>
-
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
-