public class AggregateCondition extends Object implements Serializable
Constructor and Description |
---|
AggregateCondition() |
AggregateCondition(String aggregateProperty)
默认查询count计数,不分组
|
AggregateCondition(String aggregateProperty,
AggregateType aggregateType)
按指定聚合方法查询,不分组
|
AggregateCondition(String aggregateProperty,
AggregateType aggregateType,
String[] groupByProperties) |
AggregateCondition(String aggregateProperty,
String[] groupByProperties)
默认查询count计数
|
Modifier and Type | Method and Description |
---|---|
AggregateCondition |
aggregateBy(String aggregateProperty) |
AggregateCondition |
aggregateType(AggregateType aggregateType) |
AggregateCondition |
aliasName(String aggregateAliasName) |
static AggregateCondition |
builder() |
String |
getAggregateAliasName() |
String |
getAggregateProperty() |
AggregateType |
getAggregateType() |
List<String> |
getGroupByProperties() |
AggregateCondition |
groupBy(String... groupByProperties) |
public AggregateCondition()
public AggregateCondition(String aggregateProperty)
aggregateProperty
- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格public AggregateCondition(String aggregateProperty, String[] groupByProperties)
aggregateProperty
- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格groupByProperties
- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格public AggregateCondition(String aggregateProperty, AggregateType aggregateType)
aggregateProperty
- aggregateType
- public AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties)
aggregateProperty
- 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格aggregateType
- groupByProperties
- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格public static AggregateCondition builder()
public AggregateCondition groupBy(String... groupByProperties)
public AggregateCondition aggregateBy(String aggregateProperty)
public AggregateCondition aliasName(String aggregateAliasName)
public AggregateCondition aggregateType(AggregateType aggregateType)
public String getAggregateProperty()
public String getAggregateAliasName()
public AggregateType getAggregateType()
Copyright © 2018. All rights reserved.