Package org.elasticsearch.index.mapper
Class TestScriptEngine
java.lang.Object
org.elasticsearch.index.mapper.TestScriptEngine
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ScriptEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
buildScriptFactory
(ScriptContext<?> context) final <FactoryType>
FactoryTypefinal String
getType()
static <F> ScriptService
scriptService
(ScriptContext<F> context, F factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.script.ScriptEngine
close, getSupportedContexts
-
Constructor Details
-
TestScriptEngine
public TestScriptEngine()
-
-
Method Details
-
scriptService
-
getType
- Specified by:
getType
in interfaceScriptEngine
-
compile
public final <FactoryType> FactoryType compile(String name, String code, ScriptContext<FactoryType> context, Map<String, String> params) - Specified by:
compile
in interfaceScriptEngine
-
buildScriptFactory
-