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() |
configure
public 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)
Aggregation
Strategy
instance that handles this aggregation.getStrategy
in class Aggregation
config
- The BulletConfig
containing configuration for the strategy.public List<String> getFields()
Aggregation
getFields
in class Aggregation
public Map<String,String> getFieldsToNames()
Map
from field names to aliases.public String toString()
toString
in class Aggregation
Copyright © 2021. All rights reserved.