Class ArgumentSpecification

java.lang.Object
io.trino.spi.function.table.ArgumentSpecification
Direct Known Subclasses:
DescriptorArgumentSpecification, ScalarArgumentSpecification, TableArgumentSpecification

@Experimental(eta="2022-10-31") public abstract class ArgumentSpecification extends Object
Abstract class to capture the three supported argument types for a table function: - Table arguments - Descriptor arguments - SQL scalar arguments

Each argument is named, and either passed positionally or in a `arg_name => value` convention.

Default values are allowed for all arguments except Table arguments.

  • Method Details

    • getName

      public String getName()
    • isRequired

      public boolean isRequired()
    • getDefaultValue

      public Object getDefaultValue()