org.elasticsearch.search.facet.histogram
Class HistogramFacet.Entry

java.lang.Object
  extended by org.elasticsearch.search.facet.histogram.HistogramFacet.Entry
Enclosing interface:
HistogramFacet

public static class HistogramFacet.Entry
extends java.lang.Object

A histogram entry representing a single entry within the result of a histogram facet.


Constructor Summary
HistogramFacet.Entry(long key, long count, double total)
           
 
Method Summary
 long count()
          The number of hits that fall within that key "range" or "interval".
 long getCount()
          The number of hits that fall within that key "range" or "interval".
 long getKey()
          The key value of the histogram.
 double getMean()
          The mean of this facet interval.
 double getTotal()
          The sum / total of the value field that fall within this key "interval".
 long key()
          The key value of the histogram.
 double mean()
          The mean of this facet interval.
 double total()
          The sum / total of the value field that fall within this key "interval".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramFacet.Entry

public HistogramFacet.Entry(long key,
                            long count,
                            double total)
Method Detail

key

public long key()
The key value of the histogram.


getKey

public long getKey()
The key value of the histogram.


count

public long count()
The number of hits that fall within that key "range" or "interval".


getCount

public long getCount()
The number of hits that fall within that key "range" or "interval".


total

public double total()
The sum / total of the value field that fall within this key "interval".


getTotal

public double getTotal()
The sum / total of the value field that fall within this key "interval".


mean

public double mean()
The mean of this facet interval.


getMean

public double getMean()
The mean of this facet interval.