Class ScriptDoubleValues

java.lang.Object
All Implemented Interfaces:
ScorerAware

public class ScriptDoubleValues
extends SortingNumericDoubleValues
implements ScorerAware
SortingNumericDoubleValues implementation which is based on a script
  • Field Summary

    Fields inherited from class org.elasticsearch.index.fielddata.SortingNumericDoubleValues

    values
  • Constructor Summary

    Constructors
    Constructor Description
    ScriptDoubleValues​(AggregationScript script)  
  • Method Summary

    Modifier and Type Method Description
    boolean advanceExact​(int target)
    Advance the iterator to exactly target and return whether target has a value.
    void setScorer​(org.apache.lucene.search.Scorable scorer)  

    Methods inherited from class org.elasticsearch.index.fielddata.SortingNumericDoubleValues

    docValueCount, nextValue, resize, sort

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • advanceExact

      public boolean advanceExact​(int target) throws java.io.IOException
      Description copied from class: SortedNumericDoubleValues
      Advance the iterator to exactly target and return whether target has a value. target must be greater than or equal to the current doc ID and must be a valid doc ID, ie. ≥ 0 and < maxDoc.
      Specified by:
      advanceExact in class SortedNumericDoubleValues
      Throws:
      java.io.IOException
    • setScorer

      public void setScorer​(org.apache.lucene.search.Scorable scorer)
      Specified by:
      setScorer in interface ScorerAware