Class DistributionDTO.Builder

java.lang.Object
org.apache.gravitino.dto.rel.DistributionDTO.Builder
Enclosing class:
DistributionDTO

public static class DistributionDTO.Builder extends Object
Builder for DistributionDTO.
  • Method Details

    • withArgs

      public DistributionDTO.Builder withArgs(FunctionArg... args)
      Sets the arguments of the function.
      Parameters:
      args - The arguments of the function.
      Returns:
      The builder.
    • withNumber

      public DistributionDTO.Builder withNumber(int bucketNum)
      Sets the number of buckets.
      Parameters:
      bucketNum - The number of buckets.
      Returns:
      The builder.
    • withStrategy

      public DistributionDTO.Builder withStrategy(Strategy strategy)
      Sets the strategy of the distribution.
      Parameters:
      strategy - The strategy of the distribution.
      Returns:
      The builder.
    • build

      public DistributionDTO build()
      Builds a new instance of DistributionDTO.
      Returns:
      The new instance.