public class MockScriptEngine
extends java.lang.Object
implements org.elasticsearch.script.ScriptEngineService
Modifier and Type | Class and Description |
---|---|
static class |
MockScriptEngine.TestPlugin |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.util.List<java.lang.String> |
TYPES |
Constructor and Description |
---|
MockScriptEngine() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.Object |
compile(java.lang.String script,
java.util.Map<java.lang.String,java.lang.String> params) |
org.elasticsearch.script.ExecutableScript |
executable(org.elasticsearch.script.CompiledScript compiledScript,
java.util.Map<java.lang.String,java.lang.Object> vars) |
java.util.List<java.lang.String> |
getExtensions() |
java.util.List<java.lang.String> |
getTypes() |
boolean |
isSandboxed() |
void |
scriptRemoved(org.elasticsearch.script.CompiledScript script) |
org.elasticsearch.script.SearchScript |
search(org.elasticsearch.script.CompiledScript compiledScript,
org.elasticsearch.search.lookup.SearchLookup lookup,
java.util.Map<java.lang.String,java.lang.Object> vars) |
public static final java.lang.String NAME
public static final java.util.List<java.lang.String> TYPES
public java.util.List<java.lang.String> getTypes()
getTypes
in interface org.elasticsearch.script.ScriptEngineService
public java.util.List<java.lang.String> getExtensions()
getExtensions
in interface org.elasticsearch.script.ScriptEngineService
public boolean isSandboxed()
isSandboxed
in interface org.elasticsearch.script.ScriptEngineService
public java.lang.Object compile(java.lang.String script, java.util.Map<java.lang.String,java.lang.String> params)
compile
in interface org.elasticsearch.script.ScriptEngineService
public org.elasticsearch.script.ExecutableScript executable(org.elasticsearch.script.CompiledScript compiledScript, @Nullable java.util.Map<java.lang.String,java.lang.Object> vars)
executable
in interface org.elasticsearch.script.ScriptEngineService
public org.elasticsearch.script.SearchScript search(org.elasticsearch.script.CompiledScript compiledScript, org.elasticsearch.search.lookup.SearchLookup lookup, @Nullable java.util.Map<java.lang.String,java.lang.Object> vars)
search
in interface org.elasticsearch.script.ScriptEngineService
public void scriptRemoved(@Nullable org.elasticsearch.script.CompiledScript script)
scriptRemoved
in interface org.elasticsearch.script.ScriptEngineService
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException