public class AggregationBuilder extends Object
| Constructor and Description |
|---|
AggregationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
AggregationBuilder |
addOperation(String field,
Operation operation)
Adds an aggregation operation to this builder
|
Aggregation |
getAggregation()
Gets the
Aggregation object which can be used to aggregate streams of data |
BatchAggregation |
getBatchAggregation()
Gets the
BatchAggregation object which can be used to aggregate batches of data |
AggregationBuilder |
setGroupBy(String field)
Sets the field to group the aggregation by.
|
public AggregationBuilder setGroupBy(String field)
field - Grouping Fieldthispublic AggregationBuilder addOperation(String field, Operation operation)
field - Field to store the result of this aggregation inoperation - Operation to performthispublic BatchAggregation getBatchAggregation()
BatchAggregation object which can be used to aggregate batches of dataBatchAggregation which can perform the grouping and operations set
previously on this AggregationBuilderpublic Aggregation getAggregation()
Aggregation object which can be used to aggregate streams of dataAggregation which can perform the grouping and operations set
previously on this AggregationBuilderCopyright © 2016. All rights reserved.