public class InternalStats extends InternalNumericMetricsAggregation.MultiValue implements Stats
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected long |
count |
protected double |
max |
protected double |
min |
static AggregationStreams.Stream |
STREAM |
protected double |
sum |
static InternalAggregation.Type |
TYPE |
valueFormattermetaData, nameEMPTY_PARAMS| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
InternalStats() |
|
InternalStats(String name,
long count,
double sum,
double min,
double max,
ValueFormatter formatter,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
doReadFrom(StreamInput in) |
InternalStats |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
double |
getAvg() |
String |
getAvgAsString() |
long |
getCount() |
String |
getCountAsString() |
double |
getMax() |
String |
getMaxAsString() |
double |
getMin() |
String |
getMinAsString() |
double |
getSum() |
String |
getSumAsString() |
protected XContentBuilder |
otherStatsToXCotent(XContentBuilder builder,
ToXContent.Params params) |
void |
readOtherStatsFrom(StreamInput in) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
double |
value(String name) |
protected void |
writeOtherStatsTo(StreamOutput out) |
getProperty, valueAsStringgetMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getPropertypublic static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
protected long count
protected double min
protected double max
protected double sum
protected InternalStats()
public InternalStats(String name, long count, double sum, double min, double max, ValueFormatter formatter, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public long getCount()
public double getMin()
public double getMax()
public double getAvg()
public String getCountAsString()
getCountAsString インタフェース内 Statspublic String getMinAsString()
getMinAsString インタフェース内 Statspublic String getMaxAsString()
getMaxAsString インタフェース内 Statspublic String getAvgAsString()
getAvgAsString インタフェース内 Statspublic String getSumAsString()
getSumAsString インタフェース内 Statspublic InternalAggregation.Type type()
type クラス内 InternalAggregationInternalAggregation.Type of this aggregationpublic double value(String name)
public InternalStats doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce クラス内 InternalAggregationprotected void doReadFrom(StreamInput in) throws IOException
doReadFrom クラス内 InternalAggregationIOExceptionpublic void readOtherStatsFrom(StreamInput in) throws IOException
IOExceptionprotected void doWriteTo(StreamOutput out) throws IOException
doWriteTo クラス内 InternalAggregationIOExceptionprotected void writeOtherStatsTo(StreamOutput out) throws IOException
IOExceptionpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContentBody クラス内 InternalAggregationIOExceptionprotected XContentBuilder otherStatsToXCotent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.