Package oracle.pgx.config
Enum Class UdfFunctionConfig.Field
- All Implemented Interfaces:
Serializable,Comparable<UdfFunctionConfig.Field>,Constable,ConfigField
- Enclosing class:
- UdfFunctionConfig
public static enum UdfFunctionConfig.Field
extends Enum<UdfFunctionConfig.Field>
implements ConfigField
Fields of PGX User Defined Function Config
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionlist of argumentsname of the function used as identifier in PGXreference to the UDF implementation on the classpathlanguage the function is implemented innamespace 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:) -
Method Summary
Modifier and TypeMethodDescriptionGets the default value of this field.Gets the key aliases of this field which are also recognized during parsing.Gets the key aliases of this field which contain single values for lists and are also recognized during parsing.Class<?>getType()Gets the type of this field.booleanisArray()Checks if this field is an array.booleanisHidden()Checks if this field should be hidden.booleanisPath()Checks if this field is a path.booleanChecks if this field is required.booleanChecks if this field holds a sensitive data.toKey()Get the key of this field, which is how this field is represented in serialized form.toString()static UdfFunctionConfig.FieldReturns the enum constant of this class with the specified name.static UdfFunctionConfig.Field[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface oracle.pgx.config.ConfigField
isEnum, isPrimitive
-
Enum Constant Details
-
NAMESPACE
namespace of the function in PGX -
FUNCTION_NAME
name of the function used as identifier in PGX -
LANGUAGE
language the function is implemented in -
SOURCE_LOCATION
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:) -
SOURCE_CODE
source code of the function provided inline -
IMPLEMENTATION_REFERENCE
reference to the UDF implementation on the classpath -
SOURCE_FUNCTION_NAME
name of the function in the source language -
RETURN_TYPE
return type of the function -
ARGUMENTS
list of arguments
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getKeyAliases
Description copied from interface:ConfigFieldGets the key aliases of this field which are also recognized during parsing.- Specified by:
getKeyAliasesin interfaceConfigField- Returns:
- the key aliases
-
getSingletonListKeyAliases
Description copied from interface:ConfigFieldGets the key aliases of this field which contain single values for lists and are also recognized during parsing.- Specified by:
getSingletonListKeyAliasesin interfaceConfigField- Returns:
- the singleton list key aliases
-
getType
Description copied from interface:ConfigFieldGets the type of this field.- Specified by:
getTypein interfaceConfigField- Returns:
- the type
-
isRequired
public boolean isRequired()Description copied from interface:ConfigFieldChecks if this field is required.- Specified by:
isRequiredin interfaceConfigField- Returns:
- true, if required
-
isArray
public boolean isArray()Description copied from interface:ConfigFieldChecks if this field is an array.- Specified by:
isArrayin interfaceConfigField- Returns:
- true, if array
-
isPath
public boolean isPath()Description copied from interface:ConfigFieldChecks if this field is a path.- Specified by:
isPathin interfaceConfigField- Returns:
- true, if path
-
getDefaultVal
Description copied from interface:ConfigFieldGets the default value of this field.- Specified by:
getDefaultValin interfaceConfigField- Returns:
- the default value
-
toKey
Description copied from interface:ConfigFieldGet the key of this field, which is how this field is represented in serialized form.- Specified by:
toKeyin interfaceConfigField- Returns:
- the key.
-
toString
- Overrides:
toStringin classEnum<UdfFunctionConfig.Field>
-
isSensitive
public boolean isSensitive()Description copied from interface:ConfigFieldChecks if this field holds a sensitive data.- Specified by:
isSensitivein interfaceConfigField- Returns:
- true, if use for sensitive data
-
isHidden
public boolean isHidden()Description copied from interface:ConfigFieldChecks if this field should be hidden. Hidden fields are used to hid desired field from the user and only allow it for internal usage.- Specified by:
isHiddenin interfaceConfigField- Returns:
- true if field should be hidden, false otherwise
-