public abstract class AbstractDoubleSearchScript extends AbstractSearchScript
AbstractSearchScript
for computations
that return a double number.Constructor and Description |
---|
AbstractDoubleSearchScript() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
run()
Executes the script.
|
abstract double |
runAsDouble()
Return the result as a double.
|
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 double runAsDouble()
LeafSearchScript
runAsDouble
in interface LeafSearchScript
runAsDouble
in class AbstractSearchScript
public long runAsLong()
LeafSearchScript
runAsLong
in interface LeafSearchScript
runAsLong
in class AbstractSearchScript