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 XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)static ParsedMatrixStatsfromXContent(XContentParser parser, java.lang.String name)doublegetCorrelation(java.lang.String fieldX, java.lang.String fieldY)return the correlation coefficient of field x and field ydoublegetCovariance(java.lang.String fieldX, java.lang.String fieldY)return the covariance between field x and field ylonggetDocCount()return the total document countlonggetFieldCount(java.lang.String field)return total field count (differs from docCount if there are missing values)doublegetKurtosis(java.lang.String field)return the kurtosis of the distributiondoublegetMean(java.lang.String field)return the field meandoublegetSkewness(java.lang.String field)return the skewness of the distributionjava.lang.StringgetType()doublegetVariance(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:
getTypein interfaceAggregation
-
getDocCount
public long getDocCount()
Description copied from interface:MatrixStatsreturn the total document count- Specified by:
getDocCountin interfaceMatrixStats
-
getFieldCount
public long getFieldCount(java.lang.String field)
Description copied from interface:MatrixStatsreturn total field count (differs from docCount if there are missing values)- Specified by:
getFieldCountin interfaceMatrixStats
-
getMean
public double getMean(java.lang.String field)
Description copied from interface:MatrixStatsreturn the field mean- Specified by:
getMeanin interfaceMatrixStats
-
getVariance
public double getVariance(java.lang.String field)
Description copied from interface:MatrixStatsreturn the field variance- Specified by:
getVariancein interfaceMatrixStats
-
getSkewness
public double getSkewness(java.lang.String field)
Description copied from interface:MatrixStatsreturn the skewness of the distribution- Specified by:
getSkewnessin interfaceMatrixStats
-
getKurtosis
public double getKurtosis(java.lang.String field)
Description copied from interface:MatrixStatsreturn the kurtosis of the distribution- Specified by:
getKurtosisin interfaceMatrixStats
-
getCovariance
public double getCovariance(java.lang.String fieldX, java.lang.String fieldY)Description copied from interface:MatrixStatsreturn the covariance between field x and field y- Specified by:
getCovariancein interfaceMatrixStats
-
getCorrelation
public double getCorrelation(java.lang.String fieldX, java.lang.String fieldY)Description copied from interface:MatrixStatsreturn the correlation coefficient of field x and field y- Specified by:
getCorrelationin interfaceMatrixStats
-
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBodyin classParsedAggregation- Throws:
java.io.IOException
-
fromXContent
public static ParsedMatrixStats fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-