Package org.elasticsearch.script
Class UpdateScript
java.lang.Object
org.elasticsearch.script.UpdateScript
public abstract class UpdateScript
extends java.lang.Object
An update script.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UpdateScript.Factory
-
Field Summary
Fields Modifier and Type Field Description static ScriptContext<UpdateScript.Factory>
CONTEXT
The context used to compileUpdateScript
factories.static java.lang.String[]
PARAMETERS
-
Constructor Summary
Constructors Constructor Description UpdateScript(java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PARAMETERS
public static final java.lang.String[] PARAMETERS -
CONTEXT
The context used to compileUpdateScript
factories.
-
-
Constructor Details
-
UpdateScript
public UpdateScript(java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
-
Method Details
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()Return the parameters for this script. -
getCtx
public java.util.Map<java.lang.String,java.lang.Object> getCtx()Return the update context for this script. -
execute
public abstract void execute()
-