Class FunctionPartitioningDTO

java.lang.Object
org.apache.gravitino.dto.rel.partitioning.FunctionPartitioningDTO
All Implemented Interfaces:
Partitioning, Expression, Transform

public final class FunctionPartitioningDTO extends Object implements Partitioning
Data transfer object for function partitioning.
  • Method Details

    • of

      public static FunctionPartitioningDTO of(String functionName, FunctionArg... args)
      Creates a new function partitioning DTO.
      Parameters:
      functionName - The name of the function.
      args - The arguments of the function.
      Returns:
      The function partitioning DTO.
    • functionName

      public String functionName()
      Returns the name of the function.
      Returns:
      The name of the function.
    • args

      public FunctionArg[] args()
      Returns the arguments of the function.
      Returns:
      The arguments of the function.
    • name

      public String name()
      Returns the name of the function.
      Specified by:
      name in interface Transform
      Returns:
      The name of the function.
    • arguments

      public Expression[] arguments()
      Returns the arguments of the function.
      Specified by:
      arguments in interface Transform
      Returns:
      The arguments of the function.
    • strategy

      public Partitioning.Strategy strategy()
      Returns the strategy of the partitioning.
      Specified by:
      strategy in interface Partitioning
      Returns:
      The strategy of the partitioning.
    • validate

      public void validate(ColumnDTO[] columns) throws IllegalArgumentException
      Validates the function partitioning.
      Specified by:
      validate in interface Partitioning
      Parameters:
      columns - The columns to be validated.
      Throws:
      IllegalArgumentException - If the function partitioning is invalid.