Class Distributions.DistributionImpl.Builder
java.lang.Object
org.apache.gravitino.rel.expressions.distributions.Distributions.DistributionImpl.Builder
- Enclosing class:
- Distributions.DistributionImpl
Builder to create a distribution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the distribution.withExpressions
(Expression[] expressions) Set the expressions of the distribution.withNumber
(int number) Set the number of buckets of the distribution.withStrategy
(Strategy strategy) Set the strategy of the distribution.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withStrategy
Set the strategy of the distribution.- Parameters:
strategy
- The strategy of the distribution.- Returns:
- The builder.
-
withNumber
Set the number of buckets of the distribution.- Parameters:
number
- The number of buckets of the distribution.- Returns:
- The builder.
-
withExpressions
Set the expressions of the distribution.- Parameters:
expressions
- The expressions of the distribution.- Returns:
- The builder.
-
build
Build the distribution.- Returns:
- The created distribution.
-