@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class UdfFunctionConfigBuilder
extends java.lang.Object
UdfFunctionConfig
.Constructor and Description |
---|
UdfFunctionConfigBuilder()
Constructs an empty UdfFunctionConfigBuilder
|
UdfFunctionConfigBuilder(java.util.Map<UdfFunctionConfig.Field,java.lang.Object> values)
Constructs a UdfFunctionConfigBuilder initialized with the values from the given map
|
UdfFunctionConfigBuilder(UdfFunctionConfig config)
Constructs a UdfFunctionConfigBuilder initialized with the values from the given config
|
UdfFunctionConfigBuilder(UdfFunctionConfigBuilder builder)
Constructs a UdfFunctionConfigBuilder initialized with the values from the given builder
|
Modifier and Type | Method and Description |
---|---|
UdfFunctionConfig |
build()
Builds the UdfFunctionConfig with a
parentPath of null . |
UdfFunctionConfig |
build(java.lang.String parentPath)
Builds the UdfFunctionConfig.
|
static UdfFunctionConfig |
buildUdfFunctionConfig(java.util.function.Consumer<UdfFunctionConfigBuilder> builderSetup)
Builds a
UdfFunctionConfig in-place |
UdfFunctionConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<UdfFunctionConfig.Field,java.lang.Object> |
getValues() |
UdfFunctionConfigBuilder |
putAll(java.util.Map<UdfFunctionConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
UdfFunctionConfigBuilder |
putAll(UdfFunctionConfig config)
Puts all values from the given config into this builder
|
UdfFunctionConfigBuilder |
setArguments(java.lang.Object... arguments)
list of arguments
|
UdfFunctionConfigBuilder |
setFunctionName(java.lang.String functionName)
name of the function used as identifier in PGX
|
UdfFunctionConfigBuilder |
setImplementationReference(java.lang.String implementationReference)
reference to the UDF implementation on the classpath
|
UdfFunctionConfigBuilder |
setLanguage(UdfLanguage language)
language the function is implemented in
|
UdfFunctionConfigBuilder |
setNamespace(java.lang.String namespace)
namespace of the function in PGX
|
UdfFunctionConfigBuilder |
setReturnType(PropertyType returnType)
return type of the function
|
UdfFunctionConfigBuilder |
setSourceCode(java.lang.String sourceCode)
source code of the function provided inline
|
UdfFunctionConfigBuilder |
setSourceFunctionName(java.lang.String sourceFunctionName)
name of the function in the source language
|
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 (prefix hdfs: ) or a classpath (prefix classpath:/ or jar: ) |
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public UdfFunctionConfigBuilder()
public UdfFunctionConfigBuilder(java.util.Map<UdfFunctionConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic UdfFunctionConfigBuilder(UdfFunctionConfig config)
config
- the configuration to take the values frompublic UdfFunctionConfigBuilder(UdfFunctionConfigBuilder builder)
builder
- the builder to take the values frompublic UdfFunctionConfig build()
parentPath
of null
.build(String)
public UdfFunctionConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static UdfFunctionConfig buildUdfFunctionConfig(java.util.function.Consumer<UdfFunctionConfigBuilder> builderSetup)
UdfFunctionConfig
in-placebuilderSetup
- a consumer to setup a newly created UdfFunctionConfig
public UdfFunctionConfigBuilder clear()
public java.util.Map<UdfFunctionConfig.Field,java.lang.Object> getValues()
public UdfFunctionConfigBuilder putAll(java.util.Map<UdfFunctionConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic UdfFunctionConfigBuilder putAll(UdfFunctionConfig config)
config
- the config to take the values frompublic UdfFunctionConfigBuilder setArguments(java.lang.Object... arguments)
arguments
- argumentpublic UdfFunctionConfigBuilder setFunctionName(java.lang.String functionName)
public UdfFunctionConfigBuilder setImplementationReference(java.lang.String implementationReference)
public UdfFunctionConfigBuilder setLanguage(UdfLanguage language)
public UdfFunctionConfigBuilder setNamespace(java.lang.String namespace)
public UdfFunctionConfigBuilder setReturnType(PropertyType returnType)
public UdfFunctionConfigBuilder setSourceCode(java.lang.String sourceCode)
public UdfFunctionConfigBuilder setSourceFunctionName(java.lang.String sourceFunctionName)
public UdfFunctionConfigBuilder setSourceLocation(java.lang.String sourceLocation)
http://'
or https://
), a HDFS path (prefix hdfs:
) or a classpath (prefix classpath:/
or jar:
)public java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.