Package oracle.pgx.config
Class UdfFunctionConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.AbstractUdfFunctionConfig
-
- oracle.pgx.config.UdfFunctionConfig
-
@Generated("config_generator.py") public class UdfFunctionConfig extends AbstractUdfFunctionConfigPGX User Defined Function Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUdfFunctionConfig.FieldFields 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<UdfFunctionArgumentConfig>getArguments()list of argumentsstatic UdfFunctionConfig.Field[]getConfigFields()java.lang.StringgetFunctionName()name of the function used as identifier in PGXjava.lang.StringgetImplementationReference()reference to the UDF implementation on the classpathUdfLanguagegetLanguage()language the function is implemented injava.util.Map<java.lang.String,java.lang.Object>getLeftoverValues()Gets the values that do not belong to any field.java.lang.StringgetNamespace()namespace of the function in PGXPropertyTypegetReturnType()return type of the functionjava.lang.StringgetSourceCode()source code of the function provided inlinejava.lang.StringgetSourceFunctionName()name of the function in the source languagejava.lang.StringgetSourceLocation()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:)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.booleanhasDefaultValue(UdfFunctionConfig.Field field)Checks for default value.booleanisEmpty()Checks if it's empty.static UdfFunctionConfigparse(java.io.InputStream is, boolean strict, java.lang.String parentPath)Parses an input stream.static UdfFunctionConfigparse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)Parses a raw key/value mapping.static UdfFunctionConfigparse(java.util.Properties props, boolean strict)Parses a properties file.java.lang.StringtoString()java.lang.StringtoString(boolean hideSensitiveData)-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
-
-
-
Method Detail
-
parse
public static UdfFunctionConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.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:
java.io.IOException- Signals that an I/O exception has occurred.
-
parse
public 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.- 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
public static UdfFunctionConfig parse(java.util.Properties props, boolean strict)
Parses a properties file.- Parameters:
props- the properties to parsestrict- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
public static UdfFunctionConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<UdfFunctionConfig.Field,java.lang.Object> 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
public boolean hasDefaultValue(UdfFunctionConfig.Field field)
Checks for default value.- Parameters:
field- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
public java.util.Map<UdfFunctionConfig.Field,java.lang.Object> getValuesWithoutDefaults()
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getNamespace
public java.lang.String getNamespace()
namespace of the function in PGX
-
getFunctionName
public java.lang.String getFunctionName()
name of the function used as identifier in PGX- Specified by:
getFunctionNamein classAbstractUdfFunctionConfig
-
getLanguage
public UdfLanguage getLanguage()
language the function is implemented in- Specified by:
getLanguagein classAbstractUdfFunctionConfig
-
getSourceLocation
public 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 (prefixhttp://'orhttps://), or a classpath (prefixclasspath:/orjar:)- Specified by:
getSourceLocationin classAbstractUdfFunctionConfig
-
getSourceCode
public java.lang.String getSourceCode()
source code of the function provided inline- Specified by:
getSourceCodein classAbstractUdfFunctionConfig
-
getImplementationReference
public java.lang.String getImplementationReference()
reference to the UDF implementation on the classpath- Specified by:
getImplementationReferencein classAbstractUdfFunctionConfig
-
getSourceFunctionName
public java.lang.String getSourceFunctionName()
name of the function in the source language- Specified by:
getSourceFunctionNamein classAbstractUdfFunctionConfig
-
getReturnType
public PropertyType getReturnType()
return type of the function- Specified by:
getReturnTypein classAbstractUdfFunctionConfig
-
getArguments
public java.util.List<UdfFunctionArgumentConfig> getArguments()
list of arguments- Specified by:
getArgumentsin classAbstractUdfFunctionConfig
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-