org.elasticsearch.search.facet.datehistogram
Class InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry

java.lang.Object
  extended by org.elasticsearch.search.facet.datehistogram.InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry
All Implemented Interfaces:
DateHistogramFacet.Entry
Enclosing class:
InternalCountAndTotalDateHistogramFacet

public class InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry
extends java.lang.Object
implements DateHistogramFacet.Entry

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


Constructor Summary
InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry(long time, 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".
 double getMean()
          The mean of this facet interval.
 long getTime()
          The time bucket start (in milliseconds).
 double getTotal()
          The sum / total of the value field that fall within this key "interval".
 double mean()
          The mean of this facet interval.
 long time()
          The time bucket start (in milliseconds).
 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

InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry

public InternalCountAndTotalDateHistogramFacet.CountAndTotalEntry(long time,
                                                                  long count,
                                                                  double total)
Method Detail

time

public long time()
Description copied from interface: DateHistogramFacet.Entry
The time bucket start (in milliseconds).

Specified by:
time in interface DateHistogramFacet.Entry

getTime

public long getTime()
Description copied from interface: DateHistogramFacet.Entry
The time bucket start (in milliseconds).

Specified by:
getTime in interface DateHistogramFacet.Entry

count

public long count()
Description copied from interface: DateHistogramFacet.Entry
The number of hits that fall within that key "range" or "interval".

Specified by:
count in interface DateHistogramFacet.Entry

getCount

public long getCount()
Description copied from interface: DateHistogramFacet.Entry
The number of hits that fall within that key "range" or "interval".

Specified by:
getCount in interface DateHistogramFacet.Entry

total

public double total()
Description copied from interface: DateHistogramFacet.Entry
The sum / total of the value field that fall within this key "interval".

Specified by:
total in interface DateHistogramFacet.Entry

getTotal

public double getTotal()
Description copied from interface: DateHistogramFacet.Entry
The sum / total of the value field that fall within this key "interval".

Specified by:
getTotal in interface DateHistogramFacet.Entry

mean

public double mean()
Description copied from interface: DateHistogramFacet.Entry
The mean of this facet interval.

Specified by:
mean in interface DateHistogramFacet.Entry

getMean

public double getMean()
Description copied from interface: DateHistogramFacet.Entry
The mean of this facet interval.

Specified by:
getMean in interface DateHistogramFacet.Entry