org.elasticsearch.script.mvel
Class MvelScriptEngineService

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.script.mvel.MvelScriptEngineService
All Implemented Interfaces:
ScriptEngineService

public class MvelScriptEngineService
extends AbstractComponent
implements ScriptEngineService


Nested Class Summary
static class MvelScriptEngineService.MvelExecutableScript
           
static class MvelScriptEngineService.MvelSearchScript
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
MvelScriptEngineService(Settings settings)
           
 
Method Summary
 void close()
           
 Object compile(String script)
           
 ExecutableScript executable(Object compiledScript, Map vars)
           
 Object execute(Object compiledScript, Map vars)
           
 String[] extensions()
           
 SearchScript search(Object compiledScript, SearchLookup lookup, Map<String,Object> vars)
           
 String[] types()
           
 Object unwrap(Object value)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MvelScriptEngineService

@Inject
public MvelScriptEngineService(Settings settings)
Method Detail

close

public void close()
Specified by:
close in interface ScriptEngineService

types

public String[] types()
Specified by:
types in interface ScriptEngineService

extensions

public String[] extensions()
Specified by:
extensions in interface ScriptEngineService

compile

public Object compile(String script)
Specified by:
compile in interface ScriptEngineService

execute

public Object execute(Object compiledScript,
                      Map vars)
Specified by:
execute in interface ScriptEngineService

executable

public ExecutableScript executable(Object compiledScript,
                                   Map vars)
Specified by:
executable in interface ScriptEngineService

search

public SearchScript search(Object compiledScript,
                           SearchLookup lookup,
                           @Nullable
                           Map<String,Object> vars)
Specified by:
search in interface ScriptEngineService

unwrap

public Object unwrap(Object value)
Specified by:
unwrap in interface ScriptEngineService


Copyright © 2009-2012. All Rights Reserved.