Class PreloadGraphConfig

    • Method Detail

      • parse

        public static PreloadGraphConfig 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 PreloadGraphConfig 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 PreloadGraphConfig 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​(PreloadGraphConfig.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<PreloadGraphConfig.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)
      • getPath

        public java.lang.String getPath()
        uri to graph config file
      • getName

        public java.lang.String getName()
        preloaded graph name
      • loadAtServerInitialization

        public java.lang.Boolean loadAtServerInitialization()
        if true, PGX will load the pre-loaded graph during the initialization of the engine, otherwise loads the graph after completing the engine initialization.
      • isPublish

        public java.lang.Boolean isPublish()
        whether or not this preloaded graph should be published. If published, any session can reference it by name. If this option is set to true, "publish_with_snapshots" must be set to false
        Specified by:
        isPublish in class AbstractPreloadGraphConfig
      • isPublishWithSnapshots

        public java.lang.Boolean isPublishWithSnapshots()
        whether or not this preloaded graph should be published together with its snapshots. If published this way, any session can reference it by name and can set any snapshot. If this option is set to true, "publish" must be set to false.
        Specified by:
        isPublishWithSnapshots in class AbstractPreloadGraphConfig
      • equals

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