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.TwoPhaseIterator
createTwoPhaseIterator
(IpFieldScript scriptContext, org.apache.lucene.search.DocIdSetIterator approximation) Creates theTwoPhaseIterator
for the current leaf reader.protected static InetAddress
decode
(org.apache.lucene.util.BytesRef ref) boolean
int
hashCode()
protected final boolean
matches
(org.apache.lucene.util.BytesRef[] values, int count) Does the value match this query?protected final boolean
matches
(IpFieldScript scriptContext, int docId) final String
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight, fieldName, script, visit
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, 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:AbstractScriptFieldQuery
Creates theTwoPhaseIterator
for the current leaf reader. Override to inject custom behaviour or provide additional context to the matches method when needed.- Overrides:
createTwoPhaseIterator
in classAbstractScriptFieldQuery<IpFieldScript>
-
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
-