org.elasticsearch.script
Class AbstractFloatSearchScript

java.lang.Object
  extended by org.elasticsearch.script.AbstractExecutableScript
      extended by org.elasticsearch.script.AbstractSearchScript
          extended by org.elasticsearch.script.AbstractFloatSearchScript
All Implemented Interfaces:
ExecutableScript, SearchScript
Direct Known Subclasses:
ScriptService.DocScoreSearchScript

public abstract class AbstractFloatSearchScript
extends AbstractSearchScript

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


Constructor Summary
AbstractFloatSearchScript()
           
 
Method Summary
 Object run()
          Executes the script.
 double runAsDouble()
           
abstract  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

AbstractFloatSearchScript

public AbstractFloatSearchScript()
Method Detail

run

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


runAsFloat

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

runAsDouble

public 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


Copyright © 2009-2012. All Rights Reserved.