@Generated(value="config_generator.py") public class GraphLoadingConfig extends AbstractConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphLoadingConfig.Field
Fields of PGX Engine Graph Loading Config
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getFetchIntervalSec()
(only relevant if the format supports delta updates) the interval in which the graph source is queried for changes
|
FilterExpressionConfig |
getFilter()
if not
null , load subgraph specified by this filter |
FilterStrategy |
getFilterStrategy()
the strategy to process the filter
|
java.lang.String |
getPropertyValueDelimiter()
(only relevant for
use_vertex_property_value_as_label ) if null read the whole property value as label. |
java.lang.Integer |
getUpdateIntervalSec()
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.
|
java.lang.Integer |
getUpdateThreshold()
(only relevant if the format supports delta updates) the maximum number of changes that are cached before a new snapshot is created.
|
java.lang.String |
getUseVertexPropertyValueAsLabel()
load the given property as vertex label.
|
java.util.Map<GraphLoadingConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<GraphLoadingConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphLoadingConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
isAutoRefresh()
if
true the graph gets refreshed automatically in periodic intervals. |
java.lang.Boolean |
isCreateEdgeIdIndex()
if
true , an index is prepared during loading which enables retrieval of edge paths |
java.lang.Boolean |
isCreateEdgeIdMapping()
if
true , a mapping is prepared during loading which enables edge key arguments and filters containing edge keys |
java.lang.Boolean |
isCreateVertexIdIndex()
if
true , an index is prepared during loading which enables retrieval of vertex paths |
java.lang.Boolean |
isCreateVertexIdMapping()
if
true , a mapping is prepared during loading which enables vertex arguments and vertex filters |
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isLoadEdgeLabel()
whether or not to load the edge label if it is available
|
java.lang.Boolean |
isLoadVertexLabels()
whether or not to load the vertex label if it is available
|
java.lang.Boolean |
isStrictMode()
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. |
static GraphLoadingConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static GraphLoadingConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static GraphLoadingConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
setSerializable
public java.lang.Integer getFetchIntervalSec()
public FilterExpressionConfig getFilter()
null
, load subgraph specified by this filterpublic FilterStrategy getFilterStrategy()
public java.lang.String getPropertyValueDelimiter()
use_vertex_property_value_as_label
) if null
read the whole property value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labelspublic java.lang.Integer getUpdateIntervalSec()
update_interval_sec
and update_threshold
must be setpublic java.lang.Integer getUpdateThreshold()
update_interval_sec
and update_threshold
must be setpublic java.lang.String getUseVertexPropertyValueAsLabel()
public java.util.Map<GraphLoadingConfig.Field,java.lang.Object> getValues()
public java.util.Map<GraphLoadingConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphLoadingConfig.Field field)
field
- the fieldpublic java.lang.Boolean isAutoRefresh()
true
the graph gets refreshed automatically in periodic intervals. Note: Depending on the global settings, only fixed (pre-loaded) graphs can be auto-refreshedpublic java.lang.Boolean isCreateEdgeIdIndex()
true
, an index is prepared during loading which enables retrieval of edge pathspublic java.lang.Boolean isCreateEdgeIdMapping()
true
, a mapping is prepared during loading which enables edge key arguments and filters containing edge keyspublic java.lang.Boolean isCreateVertexIdIndex()
true
, an index is prepared during loading which enables retrieval of vertex pathspublic java.lang.Boolean isCreateVertexIdMapping()
true
, a mapping is prepared during loading which enables vertex arguments and vertex filterspublic boolean isEmpty()
public java.lang.Boolean isLoadEdgeLabel()
public java.lang.Boolean isLoadVertexLabels()
public java.lang.Boolean isStrictMode()
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 GraphLoadingConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static GraphLoadingConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static GraphLoadingConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016, 2017 Oracle Corp. All Rights Reserved.