org.sonar.search.script
Class ListUpdate

java.lang.Object
  extended by org.elasticsearch.script.AbstractExecutableScript
      extended by org.sonar.search.script.ListUpdate
All Implemented Interfaces:
org.elasticsearch.script.ExecutableScript

public class ListUpdate
extends org.elasticsearch.script.AbstractExecutableScript


Nested Class Summary
static class ListUpdate.UpdateListScriptFactory
           
 
Field Summary
static String FIELD
           
static String ID_FIELD
           
static String ID_VALUE
           
static String NAME
           
static String VALUE
           
 
Constructor Summary
ListUpdate(String idField, String idValue, String field, Map<String,Object> value)
           
 
Method Summary
 Object run()
           
 void setNextVar(String name, Object value)
           
 Object unwrap(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

ID_FIELD

public static final String ID_FIELD
See Also:
Constant Field Values

ID_VALUE

public static final String ID_VALUE
See Also:
Constant Field Values

FIELD

public static final String FIELD
See Also:
Constant Field Values

VALUE

public static final String VALUE
See Also:
Constant Field Values
Constructor Detail

ListUpdate

public ListUpdate(String idField,
                  String idValue,
                  String field,
                  @Nullable
                  Map<String,Object> value)
Method Detail

setNextVar

public void setNextVar(String name,
                       Object value)
Specified by:
setNextVar in interface org.elasticsearch.script.ExecutableScript
Overrides:
setNextVar in class org.elasticsearch.script.AbstractExecutableScript

unwrap

public Object unwrap(Object value)
Specified by:
unwrap in interface org.elasticsearch.script.ExecutableScript
Overrides:
unwrap in class org.elasticsearch.script.AbstractExecutableScript

run

public Object run()


Copyright © 2009–2015 SonarSource. All rights reserved.