Class HistogramValue

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

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

    • HistogramValue

      public HistogramValue()
  • Method Details

    • next

      public abstract boolean next() throws IOException
      Advance this instance to the next value of the histogram
      Returns:
      true if there is a next value
      Throws:
      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