public class AvgAggregation extends Object implements Aggregation
举例:如果字段“age”恰好有5行(少一点我们方便举例),分别为:1、2、3、4、5,则进行AvgAggregation的结果为4。
| Modifier and Type | Class and Description |
|---|---|
static class |
AvgAggregation.Builder |
| Constructor and Description |
|---|
AvgAggregation() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAggName() |
AggregationType |
getAggType() |
String |
getFieldName() |
ColumnValue |
getMissing() |
static AvgAggregation.Builder |
newBuilder() |
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 in interface Aggregationpublic AggregationType getAggType()
getAggType in interface Aggregationpublic com.google.protobuf.ByteString serialize()
serialize in interface Aggregationpublic String getFieldName()
public ColumnValue getMissing()
public AvgAggregation setAggName(String aggName)
public AvgAggregation setFieldName(String fieldName)
public AvgAggregation setMissing(ColumnValue missing)
Copyright © 2024. All Rights Reserved.