Class ParsedMatrixStats
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.matrix.stats.ParsedMatrixStats
- All Implemented Interfaces:
org.elasticsearch.search.aggregations.Aggregation,MatrixStats,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class ParsedMatrixStats
extends org.elasticsearch.search.aggregations.ParsedAggregation
implements MatrixStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
org.elasticsearch.search.aggregations.Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadataFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) static ParsedMatrixStatsfromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) doublegetCorrelation(String fieldX, String fieldY) return the correlation coefficient of field x and field ydoublegetCovariance(String fieldX, String fieldY) return the covariance between field x and field ylongreturn the total document countlonggetFieldCount(String field) return total field count (differs from docCount if there are missing values)doublegetKurtosis(String field) return the kurtosis of the distributiondoublereturn the field meandoublegetSkewness(String field) return the skewness of the distributiongetType()doublegetVariance(String field) return the field varianceMethods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
ParsedMatrixStats
public ParsedMatrixStats()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceorg.elasticsearch.search.aggregations.Aggregation
-
getDocCount
public long getDocCount()Description copied from interface:MatrixStatsreturn the total document count- Specified by:
getDocCountin interfaceMatrixStats
-
getFieldCount
Description copied from interface:MatrixStatsreturn total field count (differs from docCount if there are missing values)- Specified by:
getFieldCountin interfaceMatrixStats
-
getMean
Description copied from interface:MatrixStatsreturn the field mean- Specified by:
getMeanin interfaceMatrixStats
-
getVariance
Description copied from interface:MatrixStatsreturn the field variance- Specified by:
getVariancein interfaceMatrixStats
-
getSkewness
Description copied from interface:MatrixStatsreturn the skewness of the distribution- Specified by:
getSkewnessin interfaceMatrixStats
-
getKurtosis
Description copied from interface:MatrixStatsreturn the kurtosis of the distribution- Specified by:
getKurtosisin interfaceMatrixStats
-
getCovariance
Description copied from interface:MatrixStatsreturn the covariance between field x and field y- Specified by:
getCovariancein interfaceMatrixStats
-
getCorrelation
Description copied from interface:MatrixStatsreturn the correlation coefficient of field x and field y- Specified by:
getCorrelationin interfaceMatrixStats
-
doXContentBody
protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentBodyin classorg.elasticsearch.search.aggregations.ParsedAggregation- Throws:
IOException
-
fromXContent
public static ParsedMatrixStats fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) throws IOException - Throws:
IOException
-