Package org.elasticsearch.script
Class TermsSetQueryScript
- java.lang.Object
-
- org.elasticsearch.script.TermsSetQueryScript
-
public abstract class TermsSetQueryScript extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTermsSetQueryScript.FactoryA factory to construct statefulTermsSetQueryScriptfactories for a specific index.static interfaceTermsSetQueryScript.LeafFactoryA factory to constructTermsSetQueryScriptinstances.
-
Field Summary
Fields Modifier and Type Field Description static ScriptContext<TermsSetQueryScript.Factory>CONTEXTstatic String[]PARAMETERS
-
Constructor Summary
Constructors Modifier Constructor Description protectedTermsSetQueryScript()TermsSetQueryScript(Map<String,Object> params, SearchLookup lookup, LeafReaderContext leafContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Numberexecute()Map<String,ScriptDocValues<?>>getDoc()The doc lookup for the Lucene segment this script was created for.Map<String,Object>getParams()Return the parameters for this script.longrunAsLong()Return the result as a long.voidsetDocument(int docid)Set the current document to run the script on next.
-
-
-
Field Detail
-
PARAMETERS
public static final String[] PARAMETERS
-
CONTEXT
public static final ScriptContext<TermsSetQueryScript.Factory> CONTEXT
-
-
Constructor Detail
-
TermsSetQueryScript
public TermsSetQueryScript(Map<String,Object> params, SearchLookup lookup, LeafReaderContext leafContext)
-
TermsSetQueryScript
protected TermsSetQueryScript()
-
-
Method Detail
-
getDoc
public Map<String,ScriptDocValues<?>> getDoc()
The doc lookup for the Lucene segment this script was created for.
-
setDocument
public void setDocument(int docid)
Set the current document to run the script on next.
-
runAsLong
public long runAsLong()
Return the result as a long. This is used by aggregation scripts over long fields.
-
execute
public abstract Number execute()
-
-