public class InternalMatrixStats extends org.elasticsearch.search.aggregations.InternalAggregation implements MatrixStats
org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext
org.elasticsearch.search.aggregations.Aggregation.CommonFields
metaData, name
Constructor and Description |
---|
InternalMatrixStats(org.elasticsearch.common.io.stream.StreamInput in)
Read from a stream.
|
Modifier and Type | Method and 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() |
equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public InternalMatrixStats(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
doWriteTo
in class org.elasticsearch.search.aggregations.InternalAggregation
java.io.IOException
public java.lang.String getWriteableName()
getWriteableName
in interface org.elasticsearch.common.io.stream.NamedWriteable
public long getDocCount()
getDocCount
in interface MatrixStats
public long getFieldCount(java.lang.String field)
getFieldCount
in interface MatrixStats
public double getMean(java.lang.String field)
getMean
in interface MatrixStats
public double getVariance(java.lang.String field)
getVariance
in interface MatrixStats
public double getSkewness(java.lang.String field)
getSkewness
in interface MatrixStats
public double getKurtosis(java.lang.String field)
getKurtosis
in interface MatrixStats
public double getCovariance(java.lang.String fieldX, java.lang.String fieldY)
getCovariance
in interface MatrixStats
public double getCorrelation(java.lang.String fieldX, java.lang.String fieldY)
getCorrelation
in interface MatrixStats
public 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.InternalAggregation
java.io.IOException
public java.lang.Object getProperty(java.util.List<java.lang.String> path)
getProperty
in class org.elasticsearch.search.aggregations.InternalAggregation
public 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.InternalAggregation
protected int doHashCode()
doHashCode
in class org.elasticsearch.search.aggregations.InternalAggregation
protected boolean doEquals(java.lang.Object obj)
doEquals
in class org.elasticsearch.search.aggregations.InternalAggregation