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 ObjectbuildScriptFactory(ScriptContext<?> context) final <FactoryType>
FactoryTypefinal StringgetType()static <F> ScriptServicescriptService(ScriptContext<F> context, F factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.script.ScriptEngine
close, getSupportedContexts
-
Constructor Details
-
TestScriptEngine
public TestScriptEngine()
-
-
Method Details
-
scriptService
-
getType
- Specified by:
getTypein interfaceScriptEngine
-
compile
public final <FactoryType> FactoryType compile(String name, String code, ScriptContext<FactoryType> context, Map<String, String> params) - Specified by:
compilein interfaceScriptEngine
-
buildScriptFactory
-