org.elasticsearch.search.facet.statistical
Class InternalStatisticalFacet

java.lang.Object
  extended by org.elasticsearch.search.facet.statistical.InternalStatisticalFacet
All Implemented Interfaces:
Streamable, ToXContent, Facet, InternalFacet, StatisticalFacet

public class InternalStatisticalFacet
extends Object
implements StatisticalFacet, InternalFacet


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.InternalFacet
InternalFacet.Stream, InternalFacet.Streams
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.search.facet.statistical.StatisticalFacet
TYPE
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalStatisticalFacet(String name, double min, double max, double total, double sumOfSquares, long count)
           
 
Method Summary
 long count()
          The number of values counted.
 long getCount()
          The number of values counted.
 double getMax()
          The maximum value.
 double getMean()
          The mean (average) of the values.
 double getMin()
          The minimum value.
 String getName()
          The "logical" name of the search facet.
 double getStdDeviation()
          Standard deviation of the values.
 double getSumOfSquares()
          The sum of squares of the values.
 double getTotal()
          The total (sum) of values.
 String getType()
          The type of the facet.
 double getVariance()
          Variance of the values.
 double max()
          The maximum value.
 double mean()
          The mean (average) of the values.
 double min()
          The minimum value.
 String name()
          The "logical" name of the search facet.
 void readFrom(StreamInput in)
           
static StatisticalFacet readStatisticalFacet(StreamInput in)
           
static void registerStreams()
           
 double stdDeviation()
          Standard deviation of the values.
 String streamType()
           
 double sumOfSquares()
          The sum of squares of the values.
 double total()
          The total (sum) of values.
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 String type()
          The type of the facet.
 double variance()
          Variance of the values.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalStatisticalFacet

public InternalStatisticalFacet(String name,
                                double min,
                                double max,
                                double total,
                                double sumOfSquares,
                                long count)
Method Detail

registerStreams

public static void registerStreams()

streamType

public String streamType()
Specified by:
streamType in interface InternalFacet

name

public String name()
Description copied from interface: Facet
The "logical" name of the search facet.

Specified by:
name in interface Facet

getName

public String getName()
Description copied from interface: Facet
The "logical" name of the search facet.

Specified by:
getName in interface Facet

type

public String type()
Description copied from interface: Facet
The type of the facet.

Specified by:
type in interface Facet

getType

public String getType()
Description copied from interface: Facet
The type of the facet.

Specified by:
getType in interface Facet

count

public long count()
Description copied from interface: StatisticalFacet
The number of values counted.

Specified by:
count in interface StatisticalFacet

getCount

public long getCount()
Description copied from interface: StatisticalFacet
The number of values counted.

Specified by:
getCount in interface StatisticalFacet

total

public double total()
Description copied from interface: StatisticalFacet
The total (sum) of values.

Specified by:
total in interface StatisticalFacet

getTotal

public double getTotal()
Description copied from interface: StatisticalFacet
The total (sum) of values.

Specified by:
getTotal in interface StatisticalFacet

sumOfSquares

public double sumOfSquares()
Description copied from interface: StatisticalFacet
The sum of squares of the values.

Specified by:
sumOfSquares in interface StatisticalFacet

getSumOfSquares

public double getSumOfSquares()
Description copied from interface: StatisticalFacet
The sum of squares of the values.

Specified by:
getSumOfSquares in interface StatisticalFacet

mean

public double mean()
Description copied from interface: StatisticalFacet
The mean (average) of the values.

Specified by:
mean in interface StatisticalFacet

getMean

public double getMean()
Description copied from interface: StatisticalFacet
The mean (average) of the values.

Specified by:
getMean in interface StatisticalFacet

min

public double min()
Description copied from interface: StatisticalFacet
The minimum value.

Specified by:
min in interface StatisticalFacet

getMin

public double getMin()
Description copied from interface: StatisticalFacet
The minimum value.

Specified by:
getMin in interface StatisticalFacet

max

public double max()
Description copied from interface: StatisticalFacet
The maximum value.

Specified by:
max in interface StatisticalFacet

getMax

public double getMax()
Description copied from interface: StatisticalFacet
The maximum value.

Specified by:
getMax in interface StatisticalFacet

variance

public double variance()
Description copied from interface: StatisticalFacet
Variance of the values.

Specified by:
variance in interface StatisticalFacet

getVariance

public double getVariance()
Description copied from interface: StatisticalFacet
Variance of the values.

Specified by:
getVariance in interface StatisticalFacet

stdDeviation

public double stdDeviation()
Description copied from interface: StatisticalFacet
Standard deviation of the values.

Specified by:
stdDeviation in interface StatisticalFacet

getStdDeviation

public double getStdDeviation()
Description copied from interface: StatisticalFacet
Standard deviation of the values.

Specified by:
getStdDeviation in interface StatisticalFacet

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

readStatisticalFacet

public static StatisticalFacet readStatisticalFacet(StreamInput in)
                                             throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.