Class PreloadGraphConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.AbstractPreloadGraphConfig
oracle.pgx.config.PreloadGraphConfig
@Generated("config_generator.py")
public class PreloadGraphConfig
extends AbstractPreloadGraphConfig
Preloaded Graph Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of Preloaded Graph Config -
Field Summary
Fields inherited from class AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PreloadGraphConfig.Field[]Gets the values that do not belong to any field.getName()preloaded graph namegetPath()uri to graph config fileGets the parsed values.Gets the values without defaults.booleanChecks for default value.booleanisEmpty()Checks if it's empty.whether or not this preloaded graph should be published.whether or not this preloaded graph should be published together with its snapshots.if true, PGX will load the pre-loaded graph during the initialization of the engine, otherwise loads the graph after completing the engine initialization.static PreloadGraphConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static PreloadGraphConfigParses a raw key/value mapping.static PreloadGraphConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Method Details
-
parse
public static PreloadGraphConfig parse(InputStream is, boolean strict, String parentPath) throws IOException Parses an input stream.- Parameters:
is- the input streamstrict- if true, parses in strict modeparentPath- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
- Throws:
IOException- Signals that an I/O exception has occurred.
-
parse
Parses a raw key/value mapping.- Parameters:
raw- the raw key/value mapping to parsestrict- if true, parses in strict modeparentPath- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
-
parse
Parses a properties file.- Parameters:
props- the properties to parsestrict- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
-
getValues
Gets the parsed values.- Specified by:
getValuesin classAbstractConfig- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
Checks for default value.- Parameters:
field- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
-
toString
-
toString
-
getPath
uri to graph config file -
getName
preloaded graph name -
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
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:
isPublishin classAbstractPreloadGraphConfig
-
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:
isPublishWithSnapshotsin classAbstractPreloadGraphConfig
-
equals
-