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, toString
protected 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)
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
Copyright © 2021. All rights reserved.