public static enum GraphLoadingConfig.Field extends java.lang.Enum<GraphLoadingConfig.Field> implements ConfigField
Enum Constant and Description |
---|
AUTO_REFRESH
if
true the graph gets refreshed automatically in periodic intervals. |
CREATE_EDGE_ID_INDEX
if
true , an index is prepared during loading which enables retrieval of edge paths |
CREATE_EDGE_ID_MAPPING
if
true , a mapping is prepared during loading which enables edge key arguments and filters containing edge keys |
CREATE_LABEL_HISTOGRAM
whether a label histogram needs to be generated when the graph is loaded
|
CREATE_VERTEX_ID_INDEX
if
true , an index is prepared during loading which enables retrieval of vertex paths |
CREATE_VERTEX_ID_MAPPING
if
true , a mapping is prepared during loading which enables vertex arguments and vertex filters |
FETCH_INTERVAL_SEC
(only relevant if the format supports delta updates) the interval in which the graph source is queried for changes
|
FILTER
if not
null , load subgraph specified by this filter |
FILTER_STRATEGY
the strategy to process the filter
|
LOAD_EDGE_LABEL
whether or not to load the edge label if it is available
|
LOAD_VERTEX_LABELS
whether or not to load the vertex label if it is available
|
PARTITION_DISCARD_DEFAULT_VALUES
[relevant for partition_while_loading]when partition_while_loading is specified, if set to
by_label , the properties that contain only default values are removed from vertex and edge providers. |
PROPERTY_VALUE_DELIMITER
if
null read the whole string value as label. |
SKIP_EDGES
whether or not to load the edges
|
SKIP_VERTICES
whether or not to load the vertices
|
SNAPSHOTS_SOURCE
source of graph snapshots: if
REFRESH , 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; if CHANGE_SET , new snapshots can be added only via changesets by any session. |
STRICT_MODE
if
true , exceptions are thrown and logged with ERROR level whenever loader encounters problems with input file, such as invalid format, repeated keys, missing fields, mismatches and other potential errors. |
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.
|
UPDATE_PROPERTIES_IN_PLACE
if
true , non-structural updates get applied to the graph in-place, else non-structural updates also cause new snapshots of the graph to be created. |
UPDATE_THRESHOLD
(only relevant if the format supports delta updates) the maximum number of changes that are cached before a new snapshot is created.
|
USE_VERTEX_PROPERTY_VALUE_AS_LABEL
load the given property as vertex label.
|
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 GraphLoadingConfig.Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GraphLoadingConfig.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 GraphLoadingConfig.Field AUTO_REFRESH
true
the graph gets refreshed automatically in periodic intervals. Note: Depending on the global settings, only fixed (pre-loaded) graphs can be auto-refreshedpublic static final GraphLoadingConfig.Field CREATE_EDGE_ID_INDEX
true
, an index is prepared during loading which enables retrieval of edge pathspublic static final GraphLoadingConfig.Field CREATE_EDGE_ID_MAPPING
true
, a mapping is prepared during loading which enables edge key arguments and filters containing edge keyspublic static final GraphLoadingConfig.Field CREATE_LABEL_HISTOGRAM
public static final GraphLoadingConfig.Field CREATE_VERTEX_ID_INDEX
true
, an index is prepared during loading which enables retrieval of vertex pathspublic static final GraphLoadingConfig.Field CREATE_VERTEX_ID_MAPPING
true
, a mapping is prepared during loading which enables vertex arguments and vertex filterspublic static final GraphLoadingConfig.Field FETCH_INTERVAL_SEC
public static final GraphLoadingConfig.Field FILTER
null
, load subgraph specified by this filterpublic static final GraphLoadingConfig.Field FILTER_STRATEGY
public static final GraphLoadingConfig.Field LOAD_EDGE_LABEL
public static final GraphLoadingConfig.Field LOAD_VERTEX_LABELS
public static final GraphLoadingConfig.Field PARTITION_DISCARD_DEFAULT_VALUES
by_label
, the properties that contain only default values are removed from vertex and edge providers.public static final GraphLoadingConfig.Field PROPERTY_VALUE_DELIMITER
null
read the whole string value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labelspublic static final GraphLoadingConfig.Field SKIP_EDGES
public static final GraphLoadingConfig.Field SKIP_VERTICES
public static final GraphLoadingConfig.Field SNAPSHOTS_SOURCE
REFRESH
, 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; if CHANGE_SET
, new snapshots can be added only via changesets by any session. Note: CHANGE_SET is not compatible with auto-refreshpublic static final GraphLoadingConfig.Field STRICT_MODE
true
, exceptions are thrown and logged with ERROR
level whenever loader encounters problems with input file, such as invalid format, repeated keys, missing fields, mismatches and other potential errors. If false
, loader may use less memory during loading phase, but behave unexpectedly with erratic input filespublic static final GraphLoadingConfig.Field UPDATE_INTERVAL_SEC
update_interval_sec
and update_threshold
must be setpublic static final GraphLoadingConfig.Field UPDATE_PROPERTIES_IN_PLACE
true
, non-structural updates get applied to the graph in-place, else non-structural updates also cause new snapshots of the graph to be created.public static final GraphLoadingConfig.Field UPDATE_THRESHOLD
update_interval_sec
and update_threshold
must be setpublic static final GraphLoadingConfig.Field USE_VERTEX_PROPERTY_VALUE_AS_LABEL
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<GraphLoadingConfig.Field>
public static GraphLoadingConfig.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 GraphLoadingConfig.Field[] values()
for (GraphLoadingConfig.Field c : GraphLoadingConfig.Field.values()) System.out.println(c);
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.