Class UdfFunctionConfigBuilder


  • @Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
    public final class UdfFunctionConfigBuilder
    extends java.lang.Object
    Builder for UdfFunctionConfig.
    • Constructor Detail

      • UdfFunctionConfigBuilder

        public UdfFunctionConfigBuilder()
        Constructs an empty UdfFunctionConfigBuilder
      • UdfFunctionConfigBuilder

        public UdfFunctionConfigBuilder​(java.util.Map<UdfFunctionConfig.Field,​java.lang.Object> values)
        Constructs a UdfFunctionConfigBuilder initialized with the values from the given map
        Parameters:
        values - a map containing configuration values
      • UdfFunctionConfigBuilder

        public UdfFunctionConfigBuilder​(UdfFunctionConfig config)
        Constructs a UdfFunctionConfigBuilder initialized with the values from the given config
        Parameters:
        config - the configuration to take the values from
      • UdfFunctionConfigBuilder

        public UdfFunctionConfigBuilder​(UdfFunctionConfigBuilder builder)
        Constructs a UdfFunctionConfigBuilder initialized with the values from the given builder
        Parameters:
        builder - the builder to take the values from
    • Method Detail

      • build

        public UdfFunctionConfig build​(java.lang.String parentPath)
        Builds the UdfFunctionConfig.
        Parameters:
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        an instance of UdfFunctionConfig
      • build

        public UdfFunctionConfig build()
        Builds the UdfFunctionConfig with a parentPath of null.
        Returns:
        An instance of UdfFunctionConfig
        See Also:
        build(String)
      • toInputStream

        public java.io.InputStream toInputStream()
        Returns:
        an InputStream representing the config
      • getValues

        public java.util.Map<UdfFunctionConfig.Field,​java.lang.Object> getValues()
        Returns:
        the raw config values
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setNamespace

        public UdfFunctionConfigBuilder setNamespace​(java.lang.String namespace)
        namespace of the function in PGX
      • setFunctionName

        public UdfFunctionConfigBuilder setFunctionName​(java.lang.String functionName)
        name of the function used as identifier in PGX
      • setSourceLocation

        public UdfFunctionConfigBuilder setSourceLocation​(java.lang.String sourceLocation)
        source code of the function provided as a unified resource identifier, either pointing to a a local file (relative to the location of this config or absolute), a web resource (prefix http://' or https://), a HDFS path (deprecated) (prefix hdfs:) or a classpath (prefix classpath:/ or jar:)
      • setSourceCode

        public UdfFunctionConfigBuilder setSourceCode​(java.lang.String sourceCode)
        source code of the function provided inline
      • setImplementationReference

        public UdfFunctionConfigBuilder setImplementationReference​(java.lang.String implementationReference)
        reference to the UDF implementation on the classpath
      • setSourceFunctionName

        public UdfFunctionConfigBuilder setSourceFunctionName​(java.lang.String sourceFunctionName)
        name of the function in the source language
      • setArguments

        public UdfFunctionConfigBuilder setArguments​(java.lang.Object... arguments)
        list of arguments
        Parameters:
        arguments - argument
      • setArguments

        public UdfFunctionConfigBuilder setArguments​(java.util.List<?> arguments)
        list of arguments
        Parameters:
        arguments - argument