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, source
setNextVar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setNextAggregationValue, setNextVar
unwrap
public java.lang.Object run()
ExecutableScript
public abstract long runAsLong()
LeafSearchScript
runAsLong
in interface LeafSearchScript
runAsLong
in class AbstractSearchScript
public double runAsDouble()
LeafSearchScript
runAsDouble
in interface LeafSearchScript
runAsDouble
in class AbstractSearchScript