java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.script.ScriptEnginepublic final class MustacheScriptEngine
extends java.lang.Object
implements org.elasticsearch.script.ScriptEngine
Mustache object can then be re-used for subsequent executions.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
| Constructor | Description |
|---|---|
MustacheScriptEngine() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
compile(java.lang.String templateName,
java.lang.String templateSource,
org.elasticsearch.script.ScriptContext<T> context,
java.util.Map<java.lang.String,java.lang.String> options) |
Compile a template string to (in this case) a Mustache object than can
later be re-used for execution to fill in missing parameter values.
|
java.lang.String |
getType() |
public static final java.lang.String NAME
public <T> T compile(java.lang.String templateName,
java.lang.String templateSource,
org.elasticsearch.script.ScriptContext<T> context,
java.util.Map<java.lang.String,java.lang.String> options)
compile in interface org.elasticsearch.script.ScriptEnginetemplateSource - a string representing the template to compile.public java.lang.String getType()
getType in interface org.elasticsearch.script.ScriptEngine