Class ParsedMatrixStats
- java.lang.Object
-
- org.elasticsearch.search.aggregations.ParsedAggregation
-
- org.elasticsearch.search.aggregations.matrix.stats.ParsedMatrixStats
-
- All Implemented Interfaces:
ToXContent
,ToXContentFragment
,Aggregation
,MatrixStats
public class ParsedMatrixStats extends ParsedAggregation implements MatrixStats
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadata
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description ParsedMatrixStats()
-
Method Summary
Modifier and Type Method Description protected XContentBuilder
doXContentBody(XContentBuilder builder, ToXContent.Params params)
static ParsedMatrixStats
fromXContent(XContentParser parser, java.lang.String name)
double
getCorrelation(java.lang.String fieldX, java.lang.String fieldY)
return the correlation coefficient of field x and field ydouble
getCovariance(java.lang.String fieldX, java.lang.String fieldY)
return the covariance between field x and field ylong
getDocCount()
return the total document countlong
getFieldCount(java.lang.String field)
return total field count (differs from docCount if there are missing values)double
getKurtosis(java.lang.String field)
return the kurtosis of the distributiondouble
getMean(java.lang.String field)
return the field meandouble
getSkewness(java.lang.String field)
return the skewness of the distributionjava.lang.String
getType()
double
getVariance(java.lang.String field)
return the field variance-
Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceAggregation
-
getDocCount
public long getDocCount()
Description copied from interface:MatrixStats
return the total document count- Specified by:
getDocCount
in interfaceMatrixStats
-
getFieldCount
public long getFieldCount(java.lang.String field)
Description copied from interface:MatrixStats
return total field count (differs from docCount if there are missing values)- Specified by:
getFieldCount
in interfaceMatrixStats
-
getMean
public double getMean(java.lang.String field)
Description copied from interface:MatrixStats
return the field mean- Specified by:
getMean
in interfaceMatrixStats
-
getVariance
public double getVariance(java.lang.String field)
Description copied from interface:MatrixStats
return the field variance- Specified by:
getVariance
in interfaceMatrixStats
-
getSkewness
public double getSkewness(java.lang.String field)
Description copied from interface:MatrixStats
return the skewness of the distribution- Specified by:
getSkewness
in interfaceMatrixStats
-
getKurtosis
public double getKurtosis(java.lang.String field)
Description copied from interface:MatrixStats
return the kurtosis of the distribution- Specified by:
getKurtosis
in interfaceMatrixStats
-
getCovariance
public double getCovariance(java.lang.String fieldX, java.lang.String fieldY)
Description copied from interface:MatrixStats
return the covariance between field x and field y- Specified by:
getCovariance
in interfaceMatrixStats
-
getCorrelation
public double getCorrelation(java.lang.String fieldX, java.lang.String fieldY)
Description copied from interface:MatrixStats
return the correlation coefficient of field x and field y- Specified by:
getCorrelation
in interfaceMatrixStats
-
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBody
in classParsedAggregation
- Throws:
java.io.IOException
-
fromXContent
public static ParsedMatrixStats fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-