org.elasticsearch.search.facet.histogram
Class InternalCountHistogramFacet.CountEntry

java.lang.Object
  extended by org.elasticsearch.search.facet.histogram.InternalCountHistogramFacet.CountEntry
All Implemented Interfaces:
HistogramFacet.Entry
Enclosing class:
InternalCountHistogramFacet

public class InternalCountHistogramFacet.CountEntry
extends java.lang.Object
implements HistogramFacet.Entry

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


Constructor Summary
InternalCountHistogramFacet.CountEntry(long key, long count)
           
 
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

InternalCountHistogramFacet.CountEntry

public InternalCountHistogramFacet.CountEntry(long key,
                                              long count)
Method Detail

key

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

Specified by:
key in interface HistogramFacet.Entry

getKey

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

Specified by:
getKey in interface HistogramFacet.Entry

count

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

Specified by:
count in interface HistogramFacet.Entry

getCount

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

Specified by:
getCount in interface HistogramFacet.Entry

total

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

Specified by:
total in interface HistogramFacet.Entry

getTotal

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

Specified by:
getTotal in interface HistogramFacet.Entry

mean

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

Specified by:
mean in interface HistogramFacet.Entry

getMean

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

Specified by:
getMean in interface HistogramFacet.Entry