public abstract class Distribution extends Aggregation
| Modifier and Type | Field and Description |
|---|---|
protected DistributionType |
distributionType |
protected String |
field |
size, type| Modifier | Constructor and Description |
|---|---|
protected |
Distribution(String field,
DistributionType type,
Integer size)
Constructor that creates a DISTRIBUTION aggregation with a specified max size.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFields()
Gets the aggregation fields.
|
Strategy |
getStrategy(BulletConfig config)
Returns a new
Strategy instance that handles this aggregation. |
configure, toStringprotected final String field
protected final DistributionType distributionType
protected Distribution(String field, DistributionType type, Integer size)
field - The non-null fieldtype - The non-null distribution typesize - The max size of the DISTRIBUTION aggregation. Can be null.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 AggregationCopyright © 2021. All rights reserved.