Class TypeInference.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • staticArguments

        public TypeInference.Builder staticArguments​(StaticArgument... staticArguments)
        Sets a list of arguments in a static signature that is not overloaded and does not support varargs.

        Static arguments are a special case of an input type strategy and takes precedence. A signature can take tables, models, or scalar values. It allows optional and/or named argument like f(myArg => 12).

      • staticArguments

        public TypeInference.Builder staticArguments​(List<StaticArgument> staticArgument)
        Sets a list of arguments in a static signature that is not overloaded and does not support varargs.

        Static arguments are a special case of an input type strategy and takes precedence. A signature can take tables, models, or scalar values. It allows optional and/or named argument like f(myArg => 12).

      • accumulatorTypeStrategy

        public TypeInference.Builder accumulatorTypeStrategy​(TypeStrategy accumulatorTypeStrategy)
        Sets the strategy for inferring the intermediate accumulator data type of an aggregate function call.
      • outputTypeStrategy

        public TypeInference.Builder outputTypeStrategy​(TypeStrategy outputTypeStrategy)
        Sets the strategy for inferring the final output data type of a function call.

        Required.

      • namedArguments

        @Deprecated
        public TypeInference.Builder namedArguments​(List<String> argumentNames)
        Deprecated.
        Sets the list of argument names for specifying a fixed, not overloaded, not vararg input signature explicitly.

        This information is useful for SQL's concept of named arguments using the assignment operator (e.g. FUNC(max => 42)). The names are used for reordering the call's arguments to the formal argument order of the function.

      • optionalArguments

        @Deprecated
        public TypeInference.Builder optionalArguments​(List<Boolean> optionalArguments)
        Deprecated.
        Sets the list of argument optionals for specifying optional arguments in the input signature explicitly.

        This information is useful for SQL's concept of named arguments using the assignment operator. The optionals are used to determine whether an argument is optional or required in the function call.

      • typedArguments

        @Deprecated
        public TypeInference.Builder typedArguments​(List<DataType> argumentTypes)
        Deprecated.
        Sets the list of argument types for specifying a fixed, not overloaded, not vararg input signature explicitly.

        This information is useful for optional arguments with default value. In particular, the number of arguments that need to be filled with a default value and their types is