@Generated(value="config_generator.py") public class UdfFunctionConfig extends AbstractUdfFunctionConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
UdfFunctionConfig.Field
Fields of PGX User Defined Function Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<UdfFunctionArgumentConfig> |
getArguments()
list of arguments
|
static UdfFunctionConfig.Field[] |
getConfigFields() |
java.lang.String |
getFunctionName()
name of the function used as identifier in PGX
|
java.lang.String |
getImplementationReference()
reference to the UDF implementation on the classpath
|
UdfLanguage |
getLanguage()
language the function is implemented in
|
java.lang.String |
getNamespace()
namespace of the function in PGX
|
PropertyType |
getReturnType()
return type of the function
|
java.lang.String |
getSourceCode()
source code of the function provided inline
|
java.lang.String |
getSourceFunctionName()
name of the function in the source language
|
java.lang.String |
getSourceLocation()
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.util.Map<UdfFunctionConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<UdfFunctionConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(UdfFunctionConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static UdfFunctionConfig |
parse(java.io.InputStream is,
boolean strict,
java.lang.String parentPath)
Parses an input stream.
|
static UdfFunctionConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw,
boolean strict,
java.lang.String parentPath)
Parses a raw key/value mapping.
|
static UdfFunctionConfig |
parse(java.util.Properties props,
boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.List<UdfFunctionArgumentConfig> getArguments()
getArguments in class AbstractUdfFunctionConfigpublic static UdfFunctionConfig.Field[] getConfigFields()
public java.lang.String getFunctionName()
getFunctionName in class AbstractUdfFunctionConfigpublic java.lang.String getImplementationReference()
getImplementationReference in class AbstractUdfFunctionConfigpublic UdfLanguage getLanguage()
getLanguage in class AbstractUdfFunctionConfigpublic java.lang.String getNamespace()
public PropertyType getReturnType()
getReturnType in class AbstractUdfFunctionConfigpublic java.lang.String getSourceCode()
getSourceCode in class AbstractUdfFunctionConfigpublic java.lang.String getSourceFunctionName()
getSourceFunctionName in class AbstractUdfFunctionConfigpublic java.lang.String getSourceLocation()
http://' or https://), a HDFS path (prefix hdfs:) or a classpath (prefix classpath:/ or jar:)getSourceLocation in class AbstractUdfFunctionConfigpublic java.util.Map<UdfFunctionConfig.Field,java.lang.Object> getValues()
public java.util.Map<UdfFunctionConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(UdfFunctionConfig.Field field)
field - the fieldpublic boolean isEmpty()
public static UdfFunctionConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is - the input streamstrict - if true, parses in strict modeparentPath - if not null, resolves relative paths against this parentPathjava.io.IOException - Signals that an I/O exception has occurred.public static UdfFunctionConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw - the raw key/value mapping to parsestrict - if true, parses in strict modeparentPath - if not null, resolves relative paths against this parentPathpublic static UdfFunctionConfig parse(java.util.Properties props, boolean strict)
props - the properties to parsestrict - if true, parses in strict modepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean hideSensitiveData)
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.