org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.search.aggregations.Aggregation, MatrixStatspublic class InternalMatrixStats extends org.elasticsearch.search.aggregations.InternalAggregation implements MatrixStats
org.elasticsearch.search.aggregations.Aggregation.CommonFieldsorg.elasticsearch.search.aggregations.InternalAggregation.ReduceContextTYPED_KEYS_DELIMITER| Constructor | Description |
|---|---|
InternalMatrixStats(org.elasticsearch.common.io.stream.StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(java.lang.Object obj) |
|
protected int |
doHashCode() |
|
org.elasticsearch.search.aggregations.InternalAggregation |
doReduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations,
org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext) |
|
protected void |
doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) |
|
org.elasticsearch.common.xcontent.XContentBuilder |
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
|
double |
getCorrelation(java.lang.String fieldX,
java.lang.String fieldY) |
get the correlation between the two fields
|
double |
getCovariance(java.lang.String fieldX,
java.lang.String fieldY) |
get the covariance between the two fields
|
long |
getDocCount() |
get the number of documents
|
long |
getFieldCount(java.lang.String field) |
get the number of samples for the given field.
|
double |
getKurtosis(java.lang.String field) |
get the distribution shape for the given field
|
double |
getMean(java.lang.String field) |
get the mean for the given field
|
java.lang.Object |
getProperty(java.util.List<java.lang.String> path) |
|
double |
getSkewness(java.lang.String field) |
get the distribution skewness for the given field
|
double |
getVariance(java.lang.String field) |
get the variance for the given field
|
java.lang.String |
getWriteableName() |
getMetaData, getName, getTypeequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTopublic InternalMatrixStats(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
doWriteTo in class org.elasticsearch.search.aggregations.InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
public long getDocCount()
getDocCount in interface MatrixStatspublic long getFieldCount(java.lang.String field)
getFieldCount in interface MatrixStatspublic double getMean(java.lang.String field)
getMean in interface MatrixStatspublic double getVariance(java.lang.String field)
getVariance in interface MatrixStatspublic double getSkewness(java.lang.String field)
getSkewness in interface MatrixStatspublic double getKurtosis(java.lang.String field)
getKurtosis in interface MatrixStatspublic double getCovariance(java.lang.String fieldX,
java.lang.String fieldY)
getCovariance in interface MatrixStatspublic double getCorrelation(java.lang.String fieldX,
java.lang.String fieldY)
getCorrelation in interface MatrixStatspublic org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
doXContentBody in class org.elasticsearch.search.aggregations.InternalAggregationjava.io.IOExceptionpublic java.lang.Object getProperty(java.util.List<java.lang.String> path)
getProperty in class org.elasticsearch.search.aggregations.InternalAggregationpublic org.elasticsearch.search.aggregations.InternalAggregation doReduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations,
org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)
doReduce in class org.elasticsearch.search.aggregations.InternalAggregationprotected int doHashCode()
doHashCode in class org.elasticsearch.search.aggregations.InternalAggregationprotected boolean doEquals(java.lang.Object obj)
doEquals in class org.elasticsearch.search.aggregations.InternalAggregation