Package org.apache.gravitino.dto.rel
Class DistributionDTO.Builder
java.lang.Object
org.apache.gravitino.dto.rel.DistributionDTO.Builder
- Enclosing class:
- DistributionDTO
Builder for
DistributionDTO.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofDistributionDTO.withArgs(FunctionArg... args) Sets the arguments of the function.withNumber(int bucketNum) Sets the number of buckets.withStrategy(Strategy strategy) Sets the strategy of the distribution.
-
Method Details
-
withArgs
Sets the arguments of the function.- Parameters:
args- The arguments of the function.- Returns:
- The builder.
-
withNumber
Sets the number of buckets.- Parameters:
bucketNum- The number of buckets.- Returns:
- The builder.
-
withStrategy
Sets the strategy of the distribution.- Parameters:
strategy- The strategy of the distribution.- Returns:
- The builder.
-
build
Builds a new instance ofDistributionDTO.- Returns:
- The new instance.
-