public class PythonScriptEngineService.PythonSearchScript extends Object implements LeafSearchScript
| Constructor and Description |
|---|
PythonSearchScript(org.python.core.PyCode code,
Map<String,Object> vars,
LeafSearchLookup lookup) |
| 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 PythonSearchScript(org.python.core.PyCode code,
Map<String,Object> vars,
LeafSearchLookup lookup)
public void setScorer(Scorer scorer)
setScorer in interface ScorerAwarepublic void setDocument(int doc)
setDocument in interface LeafSearchScriptpublic void setSource(Map<String,Object> source)
setSource in interface LeafSearchScriptpublic void setNextVar(String name, Object value)
setNextVar in interface ExecutableScriptpublic 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.