Package oracle.pgx.config
Class UdfFunctionConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.AbstractUdfFunctionConfig
oracle.pgx.config.UdfFunctionConfig
PGX User Defined Function Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of PGX User Defined Function Config -
Field Summary
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionbooleanlist of argumentsstatic UdfFunctionConfig.Field[]name of the function used as identifier in PGXreference to the UDF implementation on the classpathlanguage the function is implemented inGets the values that do not belong to any field.namespace of the function in PGXreturn type of the functionsource code of the function provided inlinename of the function in the source languagesource 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 (prefixhttp://'orhttps://), or a classpath (prefixclasspath:/orjar:)Gets the parsed values.Gets the values without defaults.booleanChecks for default value.booleanisEmpty()Checks if it's empty.static UdfFunctionConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static UdfFunctionConfigParses a raw key/value mapping.static UdfFunctionConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Method Details
-
parse
public static UdfFunctionConfig parse(InputStream is, boolean strict, String parentPath) throws IOException Parses an input stream.- Parameters:
is- the input streamstrict- if true, parses in strict modeparentPath- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
- Throws:
IOException- Signals that an I/O exception has occurred.
-
parse
Parses a raw key/value mapping.- Parameters:
raw- the raw key/value mapping to parsestrict- if true, parses in strict modeparentPath- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
-
parse
Parses a properties file.- Parameters:
props- the properties to parsestrict- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
-
getValues
Gets the parsed values.- Specified by:
getValuesin classAbstractConfig- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
Checks for default value.- Parameters:
field- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
-
toString
-
getNamespace
namespace of the function in PGX -
getFunctionName
name of the function used as identifier in PGX- Specified by:
getFunctionNamein classAbstractUdfFunctionConfig
-
getLanguage
language the function is implemented in- Specified by:
getLanguagein classAbstractUdfFunctionConfig
-
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 (prefixhttp://'orhttps://), or a classpath (prefixclasspath:/orjar:)- Specified by:
getSourceLocationin classAbstractUdfFunctionConfig
-
getSourceCode
source code of the function provided inline- Specified by:
getSourceCodein classAbstractUdfFunctionConfig
-
getImplementationReference
reference to the UDF implementation on the classpath- Specified by:
getImplementationReferencein classAbstractUdfFunctionConfig
-
getSourceFunctionName
name of the function in the source language- Specified by:
getSourceFunctionNamein classAbstractUdfFunctionConfig
-
getReturnType
return type of the function- Specified by:
getReturnTypein classAbstractUdfFunctionConfig
-
getArguments
list of arguments- Specified by:
getArgumentsin classAbstractUdfFunctionConfig
-
equals
-