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