Class GraphLoadingConfig


  • @Generated("config_generator.py")
    public class GraphLoadingConfig
    extends AbstractConfig
    PGX Engine Graph Loading Config
    • Method Detail

      • parse

        public static GraphLoadingConfig parse​(java.io.InputStream is,
                                               boolean strict,
                                               java.lang.String parentPath)
                                        throws java.io.IOException
        Parses an input stream.
        Parameters:
        is - the input stream
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • parse

        public 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.
        Parameters:
        raw - the raw key/value mapping to parse
        strict - if true, parses in strict mode
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        the parsed graph config
      • parse

        public static GraphLoadingConfig parse​(java.util.Properties props,
                                               boolean strict)
        Parses a properties file.
        Parameters:
        props - the properties to parse
        strict - if true, parses in strict mode
        Returns:
        the parsed graph config
      • isEmpty

        public boolean isEmpty()
        Checks if it's empty.
        Returns:
        true, if the Map 'values' is empty.
      • hasDefaultValue

        public boolean hasDefaultValue​(GraphLoadingConfig.Field field)
        Checks for default value.
        Parameters:
        field - the field
        Returns:
        true, if value for given field is the default value
      • getValuesWithoutDefaults

        public java.util.Map<GraphLoadingConfig.Field,​java.lang.Object> getValuesWithoutDefaults()
        Gets the values without defaults.
        Returns:
        the values without defaults
      • getLeftoverValues

        public java.util.Map<java.lang.String,​java.lang.Object> getLeftoverValues()
        Gets the values that do not belong to any field.
        Returns:
        the values that do not belong to any field
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(boolean hideSensitiveData)
      • isCreateVertexIdIndex

        public java.lang.Boolean isCreateVertexIdIndex()
        if true, an index is prepared during loading which enables retrieval of vertex paths
      • isCreateVertexIdMapping

        public java.lang.Boolean isCreateVertexIdMapping()
        if true, a mapping is prepared during loading which enables vertex arguments and vertex filters
      • isCreateEdgeIdIndex

        public java.lang.Boolean isCreateEdgeIdIndex()
        if true, an index is prepared during loading which enables retrieval of edge paths
      • isCreateEdgeIdMapping

        public java.lang.Boolean isCreateEdgeIdMapping()
        if true, a mapping is prepared during loading which enables edge key arguments and filters containing edge keys
      • isAutoRefresh

        public java.lang.Boolean isAutoRefresh()
        if true the graph gets refreshed automatically in periodic intervals. Note: Depending on the global settings, only fixed (pre-loaded) graphs can be auto-refreshed
      • getSnapshotsSource

        public SnapshotsSource getSnapshotsSource()
        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. Note: CHANGE_SET is not compatible with auto-refresh
      • getFetchIntervalSec

        public java.lang.Integer getFetchIntervalSec()
        (only relevant if the format supports delta updates) the interval in which the graph source is queried for changes
      • getUpdateIntervalSec

        public 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. (only relevant if the format supports delta updates) Set to -1 if you want to disable periodic snapshot creation. Note: one of update_interval_sec and update_threshold must be set
      • getUpdateThreshold

        public 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. Set to -1 if you want to disable the threshold for snapshot creation. Note: one of update_interval_sec and update_threshold must be set
      • isStrictMode

        public 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. If false, loader may use less memory during loading phase, but behave unexpectedly with erratic input files
      • loadVertexLabels

        public java.lang.Boolean loadVertexLabels()
        whether or not to load the vertex label if it is available
      • loadEdgeLabel

        public java.lang.Boolean loadEdgeLabel()
        whether or not to load the edge label if it is available
      • getUseVertexPropertyValueAsLabel

        public java.lang.String getUseVertexPropertyValueAsLabel()
        load the given property as vertex label. Currently only available for loading from PG
      • getPropertyValueDelimiter

        public java.lang.String getPropertyValueDelimiter()
        if null read the whole string value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labels
      • skipEdges

        public java.lang.Boolean skipEdges()
        whether or not to load the edges
      • skipVertices

        public java.lang.Boolean skipVertices()
        whether or not to load the vertices
      • isCreateLabelHistogram

        public java.lang.Boolean isCreateLabelHistogram()
        whether a label histogram needs to be generated when the graph is loaded
      • isUpdatePropertiesInPlace

        public java.lang.Boolean isUpdatePropertiesInPlace()
        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.
      • isPartitionDiscardDefaultValues

        public java.lang.Boolean isPartitionDiscardDefaultValues()
        [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.
      • getLoadingProgressReportingFrequency

        public java.lang.Integer getLoadingProgressReportingFrequency()
        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.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object