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 compile UpdateScript 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

    Modifier and Type Method Description
    abstract void execute()  
    java.util.Map<java.lang.String,​java.lang.Object> getCtx()
    Return the update context for this script.
    java.util.Map<java.lang.String,​java.lang.Object> getParams()
    Return the parameters for this script.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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()