public static final class GroovyScriptEngineService.GroovyScript extends Object implements ExecutableScript, LeafSearchScript
| Constructor and Description |
|---|
GroovyScriptEngineService.GroovyScript(CompiledScript compiledScript,
groovy.lang.Script script,
ESLogger logger) |
GroovyScriptEngineService.GroovyScript(CompiledScript compiledScript,
groovy.lang.Script script,
LeafSearchLookup lookup,
ESLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
Object |
run() |
double |
runAsDouble() |
float |
runAsFloat() |
long |
runAsLong() |
void |
setDocument(int doc) |
void |
setNextVar(String name,
Object value) |
void |
setScorer(Scorer scorer) |
void |
setSource(Map<String,Object> source) |
Object |
unwrap(Object value) |
public GroovyScriptEngineService.GroovyScript(CompiledScript compiledScript, groovy.lang.Script script, ESLogger logger)
public GroovyScriptEngineService.GroovyScript(CompiledScript compiledScript, groovy.lang.Script script, @Nullable LeafSearchLookup lookup, ESLogger logger)
public void setScorer(Scorer scorer)
setScorer in interface ScorerAwarepublic void setDocument(int doc)
setDocument in interface LeafSearchScriptpublic void setNextVar(String name, Object value)
setNextVar in interface ExecutableScriptpublic void setSource(Map<String,Object> source)
setSource in interface LeafSearchScriptpublic Object run()
run in interface ExecutableScriptpublic float runAsFloat()
runAsFloat in interface LeafSearchScriptpublic long runAsLong()
runAsLong in interface LeafSearchScriptpublic double runAsDouble()
runAsDouble in interface LeafSearchScriptpublic Object unwrap(Object value)
unwrap in interface ExecutableScriptCopyright © 2009–2017. All rights reserved.