Class HistogramValue

java.lang.Object
org.elasticsearch.index.fielddata.HistogramValue

public abstract class HistogramValue
extends java.lang.Object
Per-document histogram value. Every value of the histogram consist on a value and a count.
  • Constructor Summary

    Constructors 
    Constructor Description
    HistogramValue()  
  • Method Summary

    Modifier and Type Method Description
    abstract int count()
    The current count of the histogram
    abstract boolean next()
    Advance this instance to the next value of the histogram
    abstract double value()
    the current value of the histogram

    Methods inherited from class java.lang.Object

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

  • Method Details

    • next

      public abstract boolean next() throws java.io.IOException
      Advance this instance to the next value of the histogram
      Returns:
      true if there is a next value
      Throws:
      java.io.IOException
    • value

      public abstract double value()
      the current value of the histogram
      Returns:
      the current value of the histogram
    • count

      public abstract int count()
      The current count of the histogram
      Returns:
      the current count of the histogram