Package oracle.pgx.config
Class TwoTablesRdbmsGraphConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.GraphConfig
oracle.pgx.config.AbstractTwoTablesRdbmsGraphConfig
oracle.pgx.config.TwoTablesRdbmsGraphConfig
- All Implemented Interfaces:
CommonLoadableConfig<Format>,DbConnectionConfig,oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder,TwoTablesGraphConfig
@Generated("config_generator.py")
public class TwoTablesRdbmsGraphConfig
extends AbstractTwoTablesRdbmsGraphConfig
PGX Engine Two Tables Rdbms Graph Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of PGX Engine Two Tables Rdbms Graph Config -
Field Summary
Fields inherited from class oracle.pgx.config.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 TwoTablesRdbmsGraphConfig.Field[]data source id to use to connect to an RDBMS instanceunderlying datastoreIndicates what ID strategy should be used for the edges of this graph.type of the edge ID.specification of edge properties associated with graphname of primary key column in edges tablecolumn name for edge labelname of edges tableerror handling configurationgraph formatcolumn name for source nodebatch size of the rows to be insertedjdbc 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-databasename of primary key column in nodes tablecolumn name for node labelname of nodes tablenumber 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 updatesIndicates if the graph should be partitioned while loadinglongitude and latitude as floating point values separated by a spaceschema to use when reading/writing RDBMS objectstablespace where the tables are going to be writtenthe 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.column name for destination nodeusername 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.specification of vertex properties associated with graphbooleanChecks for default value.booleanisEmpty()Checks if it's empty.static TwoTablesRdbmsGraphConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static TwoTablesRdbmsGraphConfigParses a raw key/value mapping.static TwoTablesRdbmsGraphConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractTwoTablesRdbmsGraphConfig
getLabelValueDelimiter, getName, getNumConnections, hasEdgeKeys, hasEdgesTable, hashCode, hasNodesTable, skipEdgeLoading, skipVertexLoading, supportsVectorProperties, toGraphConfigBuilderMethods inherited from class oracle.pgx.config.GraphConfig
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getValidatedEdgeIdStrategy, getValidatedEdgeIdType, getValidatedVertexIdStrategy, getValidatedVertexIdType, getVertexPropertyTypes, hasVerticesAndEdgesSeparatedFileFormat, hasVerticesAndEdgesSeparatedFileFormat, isEdgeLabelLoadingEnabled, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, isVertexLabelsLoadingEnabled, numEdgeProperties, numNodeProperties, supportsEdgeLabel, supportsEdgeLabel, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVertexLabels, supportsVertexLabelsMethods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializableMethods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
-
Method Details
-
parse
public static TwoTablesRdbmsGraphConfig 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 TwoTablesRdbmsGraphConfig 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 classAbstractTwoTablesRdbmsGraphConfig- 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
-
getNodesTableName
name of nodes table- Specified by:
getNodesTableNamein classAbstractTwoTablesRdbmsGraphConfig
-
getEdgesTableName
name of edges table- Specified by:
getEdgesTableNamein classAbstractTwoTablesRdbmsGraphConfig
-
getTablespace
tablespace where the tables are going to be written -
getInsertBatchSize
batch size of the rows to be inserted -
getNumConnections
number of connections to read/write data from/to the RDBMS table- Specified by:
getNumConnectionsin classAbstractTwoTablesRdbmsGraphConfig
-
getSchema
schema to use when reading/writing RDBMS objects- Returns:
- the schema
-
getJdbcUrl
jdbc URL pointing to an RDBMS instance- Returns:
- the JDBC URL
-
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
-
getDatastore
underlying datastore- Returns:
- the datastore
-
getNodesKeyColumn
name of primary key column in nodes table -
getEdgesKeyColumn
name of primary key column in edges table -
getFromNidColumn
column name for source node -
getToNidColumn
column name for destination node -
getNodesLabelColumn
column name for node label -
getEdgesLabelColumn
column name for edge label -
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
-
getPartitionWhileLoading
Indicates if the graph should be partitioned while loading- Specified by:
getPartitionWhileLoadingin classGraphConfig- Returns:
trueif the graph should be heterogenized during loading,falseornullotherwise
-
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 automatically detected -
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. If not specified (or set to null), it will default to some type (depending on the origin of the data).- Specified by:
getVertexIdTypein classGraphConfig- Returns:
- the vertex ID type
-
getEdgeIdType
type of the edge ID. If not specified (or set to null), it will default to long.- Overrides:
getEdgeIdTypein classGraphConfig- Returns:
- the edge ID type
-
getFormat
graph format- Returns:
- the format
-
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
-
getVertexProps
specification of vertex properties associated with graph- Specified by:
getVertexPropsin classGraphConfig- Returns:
- the list of vertex properties
-
getEdgeProps
specification of edge properties associated with graph- Specified by:
getEdgePropsin classGraphConfig- Returns:
- the list of vertex properties
-
getLoadingOptions
loading-specific configuration- Specified by:
getLoadingOptionsin classGraphConfig- Returns:
- the loading configuration
-
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 classAbstractTwoTablesRdbmsGraphConfig
-