Class PartitionedGraphConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.GraphConfig
oracle.pgx.config.AbstractPartitionedGraphConfig
oracle.pgx.config.PartitionedGraphConfig
- All Implemented Interfaces:
CommonLoadableConfig<Format>, DbConnectionConfig, oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
@Generated("config_generator.py")
public class PartitionedGraphConfig
extends AbstractPartitionedGraphConfig
PGX Engine Partitioned Graph Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of PGX Engine Partitioned Graph Config -
Field Summary
Fields inherited from class AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionboolean[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array.additional attributes needed to read/write the graph datastatic PartitionedGraphConfig.Field[]data source id to use to connect to an RDBMS instanceIndicates what ID strategy should be used for the edges of this graph.type of the edge ID.list of edge providers in this grapherror handling configurationjdbc URL pointing to an RDBMS instancealias to the keystore to use when connecting to databaseGets the values that do not belong to any field.loading-specific configurationarray of local_date formats to use when loading and storing local_date properties.maximum number of rows prefetched during each round trip resultset-databasegetName()name of the graphnumber of connections to read/write data from/to the RDBMS tableIndicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updateslongitude and latitude as floating point values separated by a spaceAn additional list of prepared queries with arguments, working in the same way as 'queries'.A list of queries used to determine which data to load from the database.List<oracle.pgx.config.PgxRedactionRuleConfig> array of redaction rulesList<oracle.pgx.config.PgxRedactionRuleMappingConfig> mapping for redaction rules to users/rolesschema to use when reading/writing RDBMS objectsname of the database graph, if the graph is loaded from a databasesource type for database graphsthe time format to use when loading and storing time properties.the timestamp format to use when loading and storing timestamp properties.the timestamp with timezone format to use when loading and storing timestamp with timezone properties.the time with timezone format to use when loading and storing time with timezone properties.username to use when connecting to an RDBMS instanceGets the parsed values.Gets the values without defaults.delimiter for the different components of vector propertiesIndicates what ID strategy should be used for the vertices of this graph.type of the vertex ID.list of vertex providers in this graphbooleanChecks for default value.booleanisEmpty()Checks if it's empty.iftrue, sub-graph loading logic will escape keys that come from DB that contain the following special characters (),"static PartitionedGraphConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static PartitionedGraphConfigParses a raw key/value mapping.static PartitionedGraphConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class AbstractPartitionedGraphConfig
getEdgeProps, getFormat, getNumConnections, getPartitionWhileLoading, getValidatedEdgeIdStrategy, getValidatedEdgeIdType, getValidatedVertexIdStrategy, getValidatedVertexIdType, getVertexProps, hashCode, isCompKeyPresent, toGraphConfigBuilderMethods inherited from class GraphConfig
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getVertexPropertyTypes, hasVerticesAndEdgesSeparatedFileFormat, hasVerticesAndEdgesSeparatedFileFormat, isEdgeLabelLoadingEnabled, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, isVertexLabelsLoadingEnabled, numEdgeProperties, numNodeProperties, skipEdgeLoading, skipVertexLoading, supportsEdgeLabel, supportsEdgeLabel, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorProperties, supportsVertexLabels, supportsVertexLabelsMethods inherited from class AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializableMethods inherited from interface CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
-
Method Details
-
parse
public static PartitionedGraphConfig 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 PartitionedGraphConfig 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.- Specified by:
hasDefaultValuein classAbstractPartitionedGraphConfig- 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
-
getName
-
getQueries
A list of queries used to determine which data to load from the database. Data matching at least one of the queries will be loaded. Not setting any query will load the entire graph.- Specified by:
getQueriesin classAbstractPartitionedGraphConfig- Returns:
- the list of queries
-
getPreparedQueries
An additional list of prepared queries with arguments, working in the same way as 'queries'. Data matching at least one those queries will also be loaded. -
getOptimizedFor
Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updates- Specified by:
getOptimizedForin classGraphConfig- Returns:
by_labelif the graph should be partitioned during loading,falseIndicates if the graph should use data-structures optimized for fast updates
-
getVertexIdStrategy
Indicates what ID strategy should be used for the vertices of this graph. If not specified (or set to null), the strategy will be determined during loading or using a default value -
getEdgeIdStrategy
Indicates what ID strategy should be used for the edges of this graph. If not specified (or set to null), the strategy will be determined during loading or using a default value -
getVertexIdType
type of the vertex ID. For partitioned graphs, setting it to a specific type requires the IDs in the vertex providers to be unique across the graphs; those IDs will be used as global IDs; setting it to null (or omitting it) will allow repeated IDs across different vertex providers and PGX will automatically generate globally-unique 'partitioned' IDs for the vertices- Specified by:
getVertexIdTypein classGraphConfig- Returns:
- the vertex ID type
-
getEdgeIdType
type of the edge ID. For partitioned graphs, setting it to long requires the IDs in the edge providers to be unique across the graphs; those IDs will be used as global IDs; setting it to null (or omitting it) will allow repeated IDs across different edge providers and PGX will automatically generate globally-unique 'partitioned' IDs for the edges- Overrides:
getEdgeIdTypein classGraphConfig- Returns:
- the edge ID type
-
getArrayCompactionThreshold
[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array. If lower than the engine min_array_compaction_threshold value, min_array_compaction_threshold will be used instead- Specified by:
getArrayCompactionThresholdin classGraphConfig- Returns:
- the compaction threshold
-
getVertexProviders
list of vertex providers in this graph- Specified by:
getVertexProvidersin classAbstractPartitionedGraphConfig- Returns:
- the list of URIs
-
getEdgeProviders
list of edge providers in this graph- Specified by:
getEdgeProvidersin classAbstractPartitionedGraphConfig- Returns:
- the list of URIs
-
getLoadingOptions
loading-specific configuration- Specified by:
getLoadingOptionsin classGraphConfig- Returns:
- the loading configuration
-
getRedactionRules
array of redaction rules- Specified by:
getRedactionRulesin classAbstractPartitionedGraphConfig- Returns:
- the list of PgxRedactionRuleConfig
-
getRulesMapping
mapping for redaction rules to users/roles- Specified by:
getRulesMappingin classAbstractPartitionedGraphConfig- Returns:
- the list of PgxRedactionRuleMappingConfig
-
getSourceName
name of the database graph, if the graph is loaded from a database -
getSourceType
source type for database graphs -
isEscapeKeysWithPgxSpecialCharacters
iftrue, sub-graph loading logic will escape keys that come from DB that contain the following special characters ()," -
getNumConnections
number of connections to read/write data from/to the RDBMS table- Specified by:
getNumConnectionsin classAbstractPartitionedGraphConfig- Returns:
- the number of connections
-
getSchema
-
getJdbcUrl
-
getUsername
username to use when connecting to an RDBMS instance- Returns:
- the username
-
getDataSourceId
data source id to use to connect to an RDBMS instance- Returns:
- the data source id
-
getMaxPrefetchedRows
maximum number of rows prefetched during each round trip resultset-database- Returns:
- the maximum number of prefetched rows
-
getErrorHandling
error handling configuration- Returns:
- the error handling configuration
-
getLocalDateFormat
array of local_date formats to use when loading and storing local_date properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the date format
-
getTimeFormat
the time format to use when loading and storing time properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the time format
-
getTimestampFormat
the timestamp format to use when loading and storing timestamp properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the timestamp format
-
getTimeWithTimezoneFormat
the time with timezone format to use when loading and storing time with timezone properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the time with timezone format
-
getTimestampWithTimezoneFormat
the timestamp with timezone format to use when loading and storing timestamp with timezone properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the timestamp with timezone format
-
getVectorComponentDelimiter
delimiter for the different components of vector properties -
getPoint2d
longitude and latitude as floating point values separated by a space -
getAttributes
additional attributes needed to read/write the graph data- Returns:
- the map of attributes
-
getKeystoreAlias
alias to the keystore to use when connecting to database- Returns:
- the keystore alias or null if underlying format does not require a keystore
-
equals
- Overrides:
equalsin classAbstractPartitionedGraphConfig
-