public static class Distributions.DistributionImpl.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Distribution |
build()
Build the distribution.
|
Distributions.DistributionImpl.Builder |
withExpressions(Expression[] expressions)
Set the expressions of the distribution.
|
Distributions.DistributionImpl.Builder |
withNumber(int number)
Set the number of buckets of the distribution.
|
Distributions.DistributionImpl.Builder |
withStrategy(Strategy strategy)
Set the strategy of the distribution.
|
public Distributions.DistributionImpl.Builder withStrategy(Strategy strategy)
strategy
- The strategy of the distribution.public Distributions.DistributionImpl.Builder withNumber(int number)
number
- The number of buckets of the distribution.public Distributions.DistributionImpl.Builder withExpressions(Expression[] expressions)
expressions
- The expressions of the distribution.public Distribution build()