public static enum UdfFunctionConfig.Field extends java.lang.Enum<UdfFunctionConfig.Field> implements ConfigField
Enum Constant and Description |
---|
ARGUMENTS
list of arguments
|
FUNCTION_NAME
name of the function used as identifier in PGX
|
IMPLEMENTATION_REFERENCE
reference to the UDF implementation on the classpath
|
LANGUAGE
language the function is implemented in
|
NAMESPACE
namespace of the function in PGX
|
RETURN_TYPE
return type of the function
|
SOURCE_CODE
source code of the function provided inline
|
SOURCE_FUNCTION_NAME
name of the function in the source language
|
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 (prefix
http://' or https:// ), a HDFS path (prefix hdfs: ) or a classpath (prefix classpath:/ or jar: ) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultVal()
Gets the default value of this field.
|
java.util.List<java.lang.String> |
getKeyAliases()
Gets the key aliases of this field which are also recognized during parsing.
|
java.util.List<java.lang.String> |
getSingletonListKeyAliases()
Gets the key aliases of this field which contain single values for lists and are also recognized during parsing.
|
java.lang.Class<?> |
getType()
Gets the type of this field.
|
boolean |
isArray()
Checks if this field is an array.
|
boolean |
isHidden()
Checks if this field should be hidden.
|
boolean |
isPath()
Checks if this field is a path.
|
boolean |
isRequired()
Checks if this field is required.
|
boolean |
isSensitive()
Checks if this field holds a sensitive data.
|
java.lang.String |
toKey()
Get the key of this field, which is how this field is represented in serialized form.
|
java.lang.String |
toString() |
static UdfFunctionConfig.Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UdfFunctionConfig.Field[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
isEnum, isPrimitive
public static final UdfFunctionConfig.Field ARGUMENTS
public static final UdfFunctionConfig.Field FUNCTION_NAME
public static final UdfFunctionConfig.Field IMPLEMENTATION_REFERENCE
public static final UdfFunctionConfig.Field LANGUAGE
public static final UdfFunctionConfig.Field NAMESPACE
public static final UdfFunctionConfig.Field RETURN_TYPE
public static final UdfFunctionConfig.Field SOURCE_CODE
public static final UdfFunctionConfig.Field SOURCE_FUNCTION_NAME
public static final UdfFunctionConfig.Field SOURCE_LOCATION
http://'
or https://
), a HDFS path (prefix hdfs:
) or a classpath (prefix classpath:/
or jar:
)public java.lang.Object getDefaultVal()
ConfigField
getDefaultVal
in interface ConfigField
public java.util.List<java.lang.String> getKeyAliases()
ConfigField
getKeyAliases
in interface ConfigField
public java.util.List<java.lang.String> getSingletonListKeyAliases()
ConfigField
getSingletonListKeyAliases
in interface ConfigField
public java.lang.Class<?> getType()
ConfigField
getType
in interface ConfigField
public boolean isArray()
ConfigField
isArray
in interface ConfigField
public boolean isHidden()
ConfigField
isHidden
in interface ConfigField
public boolean isPath()
ConfigField
isPath
in interface ConfigField
public boolean isRequired()
ConfigField
isRequired
in interface ConfigField
public boolean isSensitive()
ConfigField
isSensitive
in interface ConfigField
public java.lang.String toKey()
ConfigField
toKey
in interface ConfigField
public java.lang.String toString()
toString
in class java.lang.Enum<UdfFunctionConfig.Field>
public static UdfFunctionConfig.Field valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static UdfFunctionConfig.Field[] values()
for (UdfFunctionConfig.Field c : UdfFunctionConfig.Field.values()) System.out.println(c);