Package oracle.pgx.config
Class FileGraphStoringConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.AbstractFileGraphStoringConfig
oracle.pgx.config.FileGraphStoringConfig
@Generated("config_generator.py")
public class FileGraphStoringConfig
extends AbstractFileGraphStoringConfig
PGX Engine File Graph Storing Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of PGX Engine File Graph Storing Config -
Field Summary
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionbooleanbase path to use for storing a graph; file paths will be constructed using the following format_ . _, i.e. oracle.pgx.vfs.CompressionSchemethe scheme to use for compression, or none to disable compressionstatic FileGraphStoringConfig.Field[]delimiter character used as separator when storing.the extension to use when creating edge file partitionsthe value used as initial partition index, i.e.Gets the values that do not belong to any field.the number of partitions that should be created, when exporting to multiple filesthe extension to use when creating row file partitionsGets the parsed values.Gets the values without defaults.the extension to use when creating vertex file partitionsbooleanChecks for default value.booleanisEmpty()Checks if it's empty.static FileGraphStoringConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static FileGraphStoringConfigParses a raw key/value mapping.static FileGraphStoringConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractFileGraphStoringConfig
getSeparator, hashCodeMethods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Method Details
-
parse
public static FileGraphStoringConfig 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
public static FileGraphStoringConfig parse(Map<String, Object> raw, boolean strict, String parentPath) 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
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
-
toString
-
getBasePath
base path to use for storing a graph; file paths will be constructed using the following format_ . _, i.e. parent_path/my_graph_1.edges - Specified by:
getBasePathin classAbstractFileGraphStoringConfig- Returns:
- the base path
-
getNumPartitions
the number of partitions that should be created, when exporting to multiple files- Specified by:
getNumPartitionsin classAbstractFileGraphStoringConfig- Returns:
- the number of partitions
-
getDelimiter
delimiter character used as separator when storing. The characters ", {, } and \n cannot be used as delimiters- Specified by:
getDelimiterin classAbstractFileGraphStoringConfig- Returns:
- the delimiter
-
getInitialPartitionIndex
the value used as initial partition index, i.e. initial_partition_index=1024 -> my_graph_1024.edges, my_graph_1025.edges- Specified by:
getInitialPartitionIndexin classAbstractFileGraphStoringConfig- Returns:
- the inital partition index
-
getVertexExtension
the extension to use when creating vertex file partitions- Specified by:
getVertexExtensionin classAbstractFileGraphStoringConfig- Returns:
- the extension
-
getEdgeExtension
the extension to use when creating edge file partitions- Specified by:
getEdgeExtensionin classAbstractFileGraphStoringConfig- Returns:
- the extension
-
getRowExtension
the extension to use when creating row file partitions- Specified by:
getRowExtensionin classAbstractFileGraphStoringConfig- Returns:
- the extension
-
getCompressionScheme
public oracle.pgx.vfs.CompressionScheme getCompressionScheme()the scheme to use for compression, or none to disable compression- Specified by:
getCompressionSchemein classAbstractFileGraphStoringConfig- Returns:
- the compression scheme
-
equals
- Overrides:
equalsin classAbstractFileGraphStoringConfig
-