public static enum GraphErrorHandlingConfig.Field extends java.lang.Enum<GraphErrorHandlingConfig.Field> implements ConfigField
Enum Constant and Description |
---|
ENABLE_EDGE_ID_DUPLICATE_CHECK
if
true , checks if there are duplicate edge IDs or not. |
ENABLE_VERTEX_ID_DUPLICATE_CHECK
if
true , checks if there are duplicate vertex IDs or not. |
ON_DUPLICATE_ENTITY_ID
what to do when a duplicate vertex or edge ID is found
|
ON_MISSED_PROP_KEY
what to do when missing property key is encountered
|
ON_MISSING_VERTEX
what to do when a source or destination vertex of an edge is not found in a vertex data source.
|
ON_PARSING_ISSUE
what to do when the data cannot be parsed correctly.
|
ON_PROP_CONVERSION
what to do when different property type is encountered than specified, but coercion is possible
|
ON_TYPE_MISMATCH
what to do when different property type is encountered than specified, but coercion is not possible
|
ON_VECTOR_LENGTH_MISMATCH
what to do when a vector property has not the correct dimension
|
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 GraphErrorHandlingConfig.Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GraphErrorHandlingConfig.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 GraphErrorHandlingConfig.Field ENABLE_EDGE_ID_DUPLICATE_CHECK
true
, checks if there are duplicate edge IDs or not. If duplicates are found, ignores them or throws an error according to on_duplicate_entity_id
. If the check is disabled, loading duplicate IDs cause an undefined behavior (loading might fail, or result in a graph in an invalid state)public static final GraphErrorHandlingConfig.Field ENABLE_VERTEX_ID_DUPLICATE_CHECK
true
, checks if there are duplicate vertex IDs or not. If duplicates are found, ignores them or throws an error according to on_duplicate_entity_id
. If the check is disabled, loading duplicate IDs cause an undefined behavior (loading might fail, or result in a graph in an invalid state)public static final GraphErrorHandlingConfig.Field ON_DUPLICATE_ENTITY_ID
public static final GraphErrorHandlingConfig.Field ON_MISSED_PROP_KEY
public static final GraphErrorHandlingConfig.Field ON_MISSING_VERTEX
public static final GraphErrorHandlingConfig.Field ON_PARSING_ISSUE
public static final GraphErrorHandlingConfig.Field ON_PROP_CONVERSION
public static final GraphErrorHandlingConfig.Field ON_TYPE_MISMATCH
public static final GraphErrorHandlingConfig.Field ON_VECTOR_LENGTH_MISMATCH
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<GraphErrorHandlingConfig.Field>
public static GraphErrorHandlingConfig.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 GraphErrorHandlingConfig.Field[] values()
for (GraphErrorHandlingConfig.Field c : GraphErrorHandlingConfig.Field.values()) System.out.println(c);