org.elasticsearch.script
Class ScriptService
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.script.ScriptService
public class ScriptService
- extends AbstractComponent
Method Summary |
void |
clear()
|
void |
close()
|
CompiledScript |
compile(java.lang.String script)
|
CompiledScript |
compile(java.lang.String lang,
java.lang.String script)
|
ExecutableScript |
executable(CompiledScript compiledScript,
java.util.Map vars)
|
ExecutableScript |
executable(java.lang.String lang,
java.lang.String script,
java.util.Map vars)
|
java.lang.Object |
execute(CompiledScript compiledScript,
java.util.Map vars)
|
SearchScript |
search(CompiledScript compiledScript,
SearchLookup lookup,
java.util.Map<java.lang.String,java.lang.Object> vars)
|
SearchScript |
search(MapperService mapperService,
FieldDataCache fieldDataCache,
java.lang.String lang,
java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> vars)
|
SearchScript |
search(SearchLookup lookup,
java.lang.String lang,
java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> vars)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptService
public ScriptService(Settings settings)
ScriptService
@Inject
public ScriptService(Settings settings,
Environment env,
java.util.Set<ScriptEngineService> scriptEngines)
close
public void close()
compile
public CompiledScript compile(java.lang.String script)
compile
public CompiledScript compile(java.lang.String lang,
java.lang.String script)
executable
public ExecutableScript executable(java.lang.String lang,
java.lang.String script,
java.util.Map vars)
executable
public ExecutableScript executable(CompiledScript compiledScript,
java.util.Map vars)
search
public SearchScript search(CompiledScript compiledScript,
SearchLookup lookup,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> vars)
search
public SearchScript search(SearchLookup lookup,
java.lang.String lang,
java.lang.String script,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> vars)
search
public SearchScript search(MapperService mapperService,
FieldDataCache fieldDataCache,
java.lang.String lang,
java.lang.String script,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> vars)
execute
public java.lang.Object execute(CompiledScript compiledScript,
java.util.Map vars)
clear
public void clear()