Class PreloadGraphConfigBuilder


  • @Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
    public final class PreloadGraphConfigBuilder
    extends java.lang.Object
    Builder for PreloadGraphConfig.
    • Constructor Detail

      • PreloadGraphConfigBuilder

        public PreloadGraphConfigBuilder()
        Constructs an empty PreloadGraphConfigBuilder
      • PreloadGraphConfigBuilder

        public PreloadGraphConfigBuilder​(java.util.Map<PreloadGraphConfig.Field,​java.lang.Object> values)
        Constructs a PreloadGraphConfigBuilder initialized with the values from the given map
        Parameters:
        values - a map containing configuration values
      • PreloadGraphConfigBuilder

        public PreloadGraphConfigBuilder​(PreloadGraphConfig config)
        Constructs a PreloadGraphConfigBuilder initialized with the values from the given config
        Parameters:
        config - the configuration to take the values from
      • PreloadGraphConfigBuilder

        public PreloadGraphConfigBuilder​(PreloadGraphConfigBuilder builder)
        Constructs a PreloadGraphConfigBuilder initialized with the values from the given builder
        Parameters:
        builder - the builder to take the values from
    • Method Detail

      • build

        public PreloadGraphConfig build​(java.lang.String parentPath)
        Builds the PreloadGraphConfig.
        Parameters:
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        an instance of PreloadGraphConfig
      • build

        public PreloadGraphConfig build()
        Builds the PreloadGraphConfig with a parentPath of null.
        Returns:
        An instance of PreloadGraphConfig
        See Also:
        build(String)
      • toInputStream

        public java.io.InputStream toInputStream()
        Returns:
        an InputStream representing the config
      • getValues

        public java.util.Map<PreloadGraphConfig.Field,​java.lang.Object> getValues()
        Returns:
        the raw config values
      • toString

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

        public PreloadGraphConfigBuilder setLoadAtServerInitialization​(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.
      • setPublish

        public PreloadGraphConfigBuilder setPublish​(boolean publish)
        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
      • setPublishWithSnapshots

        public PreloadGraphConfigBuilder setPublishWithSnapshots​(boolean publishWithSnapshots)
        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.