public abstract class AbstractLongSearchScript extends AbstractSearchScript
AbstractSearchScript for computations
that return a long number.| Constructor and Description |
|---|
AbstractLongSearchScript() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
run()
Executes the script.
|
double |
runAsDouble()
Return the result as a double.
|
abstract long |
runAsLong()
Return the result as a long.
|
doc, docFieldDoubles, docFieldLongs, docFieldStrings, fields, indexLookup, score, setDocument, setScorer, setSource, sourcesetNextVarclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNextAggregationValue, setNextVarunwrappublic java.lang.Object run()
ExecutableScriptpublic abstract long runAsLong()
LeafSearchScriptrunAsLong in interface LeafSearchScriptrunAsLong in class AbstractSearchScriptpublic double runAsDouble()
LeafSearchScriptrunAsDouble in interface LeafSearchScriptrunAsDouble in class AbstractSearchScript