org.elasticsearch.script
Class AbstractLongSearchScript

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

public abstract class AbstractLongSearchScript
extends AbstractSearchScript

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


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

AbstractLongSearchScript

public AbstractLongSearchScript()
Method Detail

run

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


runAsLong

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

runAsDouble

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

runAsFloat

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


Copyright © 2009-2012. All Rights Reserved.