org.elasticsearch.script
Class AbstractDoubleSearchScript

java.lang.Object
  extended by org.elasticsearch.script.AbstractExecutableScript
      extended by org.elasticsearch.script.AbstractSearchScript
          extended by org.elasticsearch.script.AbstractDoubleSearchScript
All Implemented Interfaces:
ExecutableScript, SearchScript

public abstract class AbstractDoubleSearchScript
extends AbstractSearchScript

A simpler base class instead of AbstractSearchScript for computations that return a double number.


Constructor Summary
AbstractDoubleSearchScript()
           
 
Method Summary
 Object run()
          Executes the script.
abstract  double runAsDouble()
           
 float runAsFloat()
           
 long runAsLong()
           
 
Methods inherited from class org.elasticsearch.script.AbstractSearchScript
doc, fields, score, setNextDocId, setNextReader, setNextScore, setNextSource, setScorer, source
 
Methods inherited from class org.elasticsearch.script.AbstractExecutableScript
setNextVar, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.script.ExecutableScript
setNextVar, unwrap
 

Constructor Detail

AbstractDoubleSearchScript

public AbstractDoubleSearchScript()
Method Detail

run

public Object run()
Description copied from interface: ExecutableScript
Executes the script.


runAsDouble

public abstract double runAsDouble()
Specified by:
runAsDouble in interface SearchScript
Overrides:
runAsDouble in class AbstractSearchScript

runAsLong

public long runAsLong()
Specified by:
runAsLong in interface SearchScript
Overrides:
runAsLong in class AbstractSearchScript

runAsFloat

public float runAsFloat()
Specified by:
runAsFloat in interface SearchScript
Overrides:
runAsFloat in class AbstractSearchScript


Copyright © 2009-2012. All Rights Reserved.