Package oracle.pgx.config
Enum Class GraphLoadingConfig.Field
- All Implemented Interfaces:
Serializable,Comparable<GraphLoadingConfig.Field>,Constable,ConfigField
- Enclosing class:
- GraphLoadingConfig
public static enum GraphLoadingConfig.Field
extends Enum<GraphLoadingConfig.Field>
implements ConfigField
Fields of PGX Engine Graph Loading Config
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioniftruethe graph gets refreshed automatically in periodic intervals.iftrue, an index is prepared during loading which enables retrieval of edge pathsiftrue, a mapping is prepared during loading which enables edge key arguments and filters containing edge keyswhether a label histogram needs to be generated when the graph is loadediftrue, an index is prepared during loading which enables retrieval of vertex pathsiftrue, a mapping is prepared during loading which enables vertex arguments and vertex filters(only relevant if the format supports delta updates) the interval in which the graph source is queried for changeswhether or not to load the edge label if it is availablewhether or not to load the vertex label if it is availableindicates at what frequency the loading of vertices and edges should be logged.[relevant for partition_while_loading]when partition_while_loading is specified, if set toby_label, the properties that contain only default values are removed from vertex and edge providers.ifnullread the whole string value as label.whether or not to load the edgeswhether or not to load the verticessource of graph snapshots: ifREFRESH, new snapshots can be created only by reading the graph again via this config (e.g., with `readGraphWithProperties`), or equivalently via auto-refresh if enabled; ifCHANGE_SET, new snapshots can be added only via changesets by any session.iftrue, exceptions are thrown and logged withERRORlevel whenever loader encounters problems with input file, such as invalid format, repeated keys, missing fields, mismatches and other potential errors.the interval in which a new snapshot is created, either by reloading the entire graph or if the format supports delta-updates, out of the cached changes.iftrue, non-structural updates get applied to the graph in-place, else non-structural updates also cause new snapshots of the graph to be created.(only relevant if the format supports delta updates) the maximum number of changes that are cached before a new snapshot is created.load the given property as vertex label. -
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 GraphLoadingConfig.FieldReturns the enum constant of this class with the specified name.static GraphLoadingConfig.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
-
CREATE_VERTEX_ID_INDEX
iftrue, an index is prepared during loading which enables retrieval of vertex paths -
CREATE_VERTEX_ID_MAPPING
iftrue, a mapping is prepared during loading which enables vertex arguments and vertex filters -
CREATE_EDGE_ID_INDEX
iftrue, an index is prepared during loading which enables retrieval of edge paths -
CREATE_EDGE_ID_MAPPING
iftrue, a mapping is prepared during loading which enables edge key arguments and filters containing edge keys -
AUTO_REFRESH
iftruethe graph gets refreshed automatically in periodic intervals. Note: Depending on the global settings, only fixed (pre-loaded) graphs can be auto-refreshed -
SNAPSHOTS_SOURCE
source of graph snapshots: ifREFRESH, new snapshots can be created only by reading the graph again via this config (e.g., with `readGraphWithProperties`), or equivalently via auto-refresh if enabled; ifCHANGE_SET, new snapshots can be added only via changesets by any session. Note: CHANGE_SET is not compatible with auto-refresh -
FETCH_INTERVAL_SEC
(only relevant if the format supports delta updates) the interval in which the graph source is queried for changes -
UPDATE_INTERVAL_SEC
the interval in which a new snapshot is created, either by reloading the entire graph or if the format supports delta-updates, out of the cached changes. (only relevant if the format supports delta updates) Set to -1 if you want to disable periodic snapshot creation. Note: one ofupdate_interval_secandupdate_thresholdmust be set -
UPDATE_THRESHOLD
(only relevant if the format supports delta updates) the maximum number of changes that are cached before a new snapshot is created. Set to -1 if you want to disable the threshold for snapshot creation. Note: one ofupdate_interval_secandupdate_thresholdmust be set -
STRICT_MODE
iftrue, exceptions are thrown and logged withERRORlevel whenever loader encounters problems with input file, such as invalid format, repeated keys, missing fields, mismatches and other potential errors. Iffalse, loader may use less memory during loading phase, but behave unexpectedly with erratic input files -
LOAD_VERTEX_LABELS
whether or not to load the vertex label if it is available -
LOAD_EDGE_LABEL
whether or not to load the edge label if it is available -
USE_VERTEX_PROPERTY_VALUE_AS_LABEL
load the given property as vertex label. Currently only available for loading from PG -
PROPERTY_VALUE_DELIMITER
ifnullread the whole string value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labels -
SKIP_EDGES
whether or not to load the edges -
SKIP_VERTICES
whether or not to load the vertices -
CREATE_LABEL_HISTOGRAM
whether a label histogram needs to be generated when the graph is loaded -
UPDATE_PROPERTIES_IN_PLACE
iftrue, non-structural updates get applied to the graph in-place, else non-structural updates also cause new snapshots of the graph to be created. -
PARTITION_DISCARD_DEFAULT_VALUES
[relevant for partition_while_loading]when partition_while_loading is specified, if set toby_label, the properties that contain only default values are removed from vertex and edge providers. -
LOADING_PROGRESS_REPORTING_FREQUENCY
indicates at what frequency the loading of vertices and edges should be logged. The frequency will be rounded up to the next multiple of 10,000.
-
-
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<GraphLoadingConfig.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
-