Class IngestConditionalScript

java.lang.Object
org.elasticsearch.script.IngestConditionalScript

public abstract class IngestConditionalScript
extends java.lang.Object
A script used by ConditionalProcessor.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  IngestConditionalScript.Factory  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static ScriptContext<IngestConditionalScript.Factory> CONTEXT
    The context used to compile IngestConditionalScript factories.
    static java.lang.String[] PARAMETERS  
  • Constructor Summary

    Constructors
    Constructor Description
    IngestConditionalScript​(java.util.Map<java.lang.String,​java.lang.Object> params)  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean execute​(java.util.Map<java.lang.String,​java.lang.Object> ctx)  
    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

    • IngestConditionalScript

      public IngestConditionalScript​(java.util.Map<java.lang.String,​java.lang.Object> params)
  • Method Details

    • getParams

      public java.util.Map<java.lang.String,​java.lang.Object> getParams()
      Return the parameters for this script.
    • execute

      public abstract boolean execute​(java.util.Map<java.lang.String,​java.lang.Object> ctx)