public class GroupBy extends Aggregation
size, type| Constructor and Description |
|---|
GroupBy(Integer size,
Map<String,String> fields,
Set<GroupOperation> operations)
Constructor that creates a GROUP aggregation with a specified max size and fields.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFields()
Gets the aggregation fields.
|
Map<String,String> |
getFieldsToNames()
Gets a map from field names to aliases.
|
Strategy |
getStrategy(BulletConfig config)
Returns a new
Strategy instance that handles this aggregation. |
String |
toString() |
configurepublic GroupBy(Integer size, Map<String,String> fields, Set<GroupOperation> operations)
size - The max size of the GROUP aggregation. Can be null.fields - The non-null and non-empty fields to group by.operations - The non-null set of group operations. Can be empty.public Strategy getStrategy(BulletConfig config)
AggregationStrategy instance that handles this aggregation.getStrategy in class Aggregationconfig - The BulletConfig containing configuration for the strategy.public List<String> getFields()
AggregationgetFields in class Aggregationpublic Map<String,String> getFieldsToNames()
Map from field names to aliases.public String toString()
toString in class AggregationCopyright © 2021. All rights reserved.