public class AvgAggregation extends Object implements Aggregation
Example: If the field "age" has exactly 5 rows (fewer for convenient illustration), with values 1, 2, 3, 4, and 5, respectively, then the result of AvgAggregation would be 3.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AvgAggregation.Builder |
| 构造器和说明 |
|---|
AvgAggregation() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAggName() |
AggregationType |
getAggType() |
String |
getFieldName() |
ColumnValue |
getMissing() |
static AvgAggregation.Builder |
newBuilder() |
com.aliyun.ots.thirdparty.com.google.protobuf.ByteString |
serialize() |
AvgAggregation |
setAggName(String aggName) |
AvgAggregation |
setFieldName(String fieldName) |
AvgAggregation |
setMissing(ColumnValue missing) |
public static AvgAggregation.Builder newBuilder()
public String getAggName()
getAggName 在接口中 Aggregationpublic AggregationType getAggType()
getAggType 在接口中 Aggregationpublic com.aliyun.ots.thirdparty.com.google.protobuf.ByteString serialize()
serialize 在接口中 Aggregationpublic String getFieldName()
public ColumnValue getMissing()
public AvgAggregation setAggName(String aggName)
public AvgAggregation setFieldName(String fieldName)
public AvgAggregation setMissing(ColumnValue missing)
Copyright © 2025. All Rights Reserved.