Package org.elasticsearch.script
Interface ScriptCompiler
- All Known Implementing Classes:
ScriptService
public interface ScriptCompiler
Takes a Script definition and returns a compiled script factory
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
compile
(Script script, ScriptContext<T> scriptContext) Takes a Script definition and returns a compiled script factory
-
Field Details
-
NONE
-
-
Method Details
-
compile
Takes a Script definition and returns a compiled script factory- Type Parameters:
T
- the class of the compiled Script factory- Parameters:
script
- the Script to compilescriptContext
- the ScriptContext defining how to compile the script- Returns:
- a Script factory
-