org.elasticsearch.script
Class NativeScriptEngineService

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

public class NativeScriptEngineService
extends AbstractComponent
implements ScriptEngineService

A native script engine service.


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
NativeScriptEngineService(Settings settings, Map<String,NativeScriptFactory> scripts)
           
 
Method Summary
 void close()
           
 Object compile(String script)
           
 ExecutableScript executable(Object compiledScript, Map<String,Object> vars)
           
 Object execute(Object compiledScript, Map<String,Object> 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

NativeScriptEngineService

@Inject
public NativeScriptEngineService(Settings settings,
                                        Map<String,NativeScriptFactory> scripts)
Method Detail

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

executable

public ExecutableScript executable(Object compiledScript,
                                   @Nullable
                                   Map<String,Object> 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

execute

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

unwrap

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

close

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


Copyright © 2009-2012. All Rights Reserved.