Package oracle.pgx.config
Class RdbmsEntityProviderConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.EntityProviderConfig
-
- oracle.pgx.config.AbstractRdbmsEntityProviderConfig
-
- oracle.pgx.config.RdbmsEntityProviderConfig
-
- All Implemented Interfaces:
CommonLoadableConfig<ProviderFormat>
,DbConnectionConfig
,oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
@Generated("config_generator.py") public class RdbmsEntityProviderConfig extends AbstractRdbmsEntityProviderConfig
PGX Engine Rdbms Entity Provider Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RdbmsEntityProviderConfig.Field
Fields of PGX Engine Rdbms Entity Provider Config
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAsOf()
SCN value to use when executing Oracle Flashback queries, use `<current-scn>` to determine SCN automatically during loading.java.util.Map
getAttributes()
additional attributes needed to read/write the graph datastatic RdbmsEntityProviderConfig.Field[]
getConfigFields()
java.lang.String
getDatabaseTableName()
name of the table in the databasejava.lang.String
getDataSourceId()
data source id to use to connect to an RDBMS instancejava.lang.String
getDestinationColumn()
name of the column in the database containing the keys of the destination verticesjava.lang.String
getDestinationVertexProvider()
name of the destination vertex provider to be used for this edge providerGraphErrorHandlingConfig
getErrorHandling()
error handling configurationProviderFormat
getFormat()
provider formatjava.lang.String
getJdbcUrl()
jdbc URL pointing to an RDBMS instancejava.lang.String
getKeyColumn()
name of the column in the database table containing the keys of the entitiesjava.lang.String
getKeystoreAlias()
alias to the keystore to use when connecting to databaseIdType
getKeyType()
type of the keysjava.lang.String
getLabel()
label for the entities loaded from this providerjava.util.Map<java.lang.String,java.lang.Object>
getLeftoverValues()
Gets the values that do not belong to any field.ProviderLoadingConfig
getLoading()
loading-specific configurationjava.util.List<java.lang.String>
getLocalDateFormat()
array of local_date formats to use when loading and storing local_date properties.java.lang.Integer
getMaxPrefetchedRows()
maximum number of rows prefetched during each round trip resultset-databasejava.lang.String
getName()
entity provider namejava.lang.Integer
getNumConnections()
number of connections to read/write data from/to the RDBMS table.java.lang.Integer
getParallelHintDegree()
parallel hint degree to use for internal queries.java.lang.String
getPoint2d()
longitude and latitude as floating point values separated by a spacejava.util.List<GraphPropertyConfig>
getProps()
specification of the properties associated with this entity providerjava.lang.String
getSchema()
schema to use when reading/writing RDBMS objectsjava.lang.String
getSourceColumn()
name of the column in the database containing the keys of the source verticesjava.lang.String
getSourceVertexProvider()
name of the source vertex provider to be used for this edge providerjava.util.List<java.lang.String>
getTimeFormat()
the time format to use when loading and storing time properties.java.util.List<java.lang.String>
getTimestampFormat()
the timestamp format to use when loading and storing timestamp properties.java.util.List<java.lang.String>
getTimestampWithTimezoneFormat()
the timestamp with timezone format to use when loading and storing timestamp with timezone properties.java.util.List<java.lang.String>
getTimeWithTimezoneFormat()
the time with timezone format to use when loading and storing time with timezone properties.java.lang.String
getUsername()
username to use when connecting to an RDBMS instancejava.util.Map<RdbmsEntityProviderConfig.Field,java.lang.Object>
getValues()
Gets the parsed values.java.util.Map<RdbmsEntityProviderConfig.Field,java.lang.Object>
getValuesWithoutDefaults()
Gets the values without defaults.java.lang.Character
getVectorComponentDelimiter()
delimiter for the different components of vector propertiesboolean
hasDefaultValue(RdbmsEntityProviderConfig.Field field)
Checks for default value.java.lang.Boolean
hasKeys()
indicates if the provided entities data have keysboolean
isEmpty()
Checks if it's empty.static RdbmsEntityProviderConfig
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.static RdbmsEntityProviderConfig
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.static RdbmsEntityProviderConfig
parse(java.util.Properties props, boolean strict)
Parses a properties file.java.lang.String
toString()
java.lang.String
toString(boolean hideSensitiveData)
-
Methods inherited from class oracle.pgx.config.AbstractRdbmsEntityProviderConfig
getDataSourceId, getJdbcUrl, getKeystoreAlias, getLoadedDatabaseTableName, getMaxPrefetchedRows, getNumConnections, getNumConnections, getSchema, getUsername, hashCode, supportsVectorProperties, toEntityProviderConfigBuilder
-
Methods inherited from class oracle.pgx.config.EntityProviderConfig
getDestinationVertexKeyType, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getSourceVertexKeyType, getValidatedLabel, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties
-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Methods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
-
-
-
-
Method Detail
-
parse
public static RdbmsEntityProviderConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.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:
java.io.IOException
- Signals that an I/O exception has occurred.
-
parse
public static RdbmsEntityProviderConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.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
public static RdbmsEntityProviderConfig parse(java.util.Properties props, boolean strict)
Parses a properties file.- Parameters:
props
- the properties to parsestrict
- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
public static RdbmsEntityProviderConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<RdbmsEntityProviderConfig.Field,java.lang.Object> getValues()
Gets the parsed values.- Specified by:
getValues
in classAbstractConfig
- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()
Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
public boolean hasDefaultValue(RdbmsEntityProviderConfig.Field field)
Checks for default value.- Specified by:
hasDefaultValue
in classAbstractRdbmsEntityProviderConfig
- Parameters:
field
- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
public java.util.Map<RdbmsEntityProviderConfig.Field,java.lang.Object> getValuesWithoutDefaults()
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getDatabaseTableName
public java.lang.String getDatabaseTableName()
name of the table in the database- Specified by:
getDatabaseTableName
in classAbstractRdbmsEntityProviderConfig
-
getAsOf
public java.lang.String getAsOf()
SCN value to use when executing Oracle Flashback queries, use `<current-scn>` to determine SCN automatically during loading. Use `<no-scn>` to disable this feature.
-
getParallelHintDegree
public java.lang.Integer getParallelHintDegree()
parallel hint degree to use for internal queries. If the value is negative, the parallel hint will be omitted. If the value is zero, a parallel hint without degree is generated.
-
getKeyColumn
public java.lang.String getKeyColumn()
name of the column in the database table containing the keys of the entities- Specified by:
getKeyColumn
in classAbstractRdbmsEntityProviderConfig
-
getSourceColumn
public java.lang.String getSourceColumn()
name of the column in the database containing the keys of the source vertices- Specified by:
getSourceColumn
in classAbstractRdbmsEntityProviderConfig
-
getDestinationColumn
public java.lang.String getDestinationColumn()
name of the column in the database containing the keys of the destination vertices- Specified by:
getDestinationColumn
in classAbstractRdbmsEntityProviderConfig
-
getNumConnections
public java.lang.Integer getNumConnections()
number of connections to read/write data from/to the RDBMS table. For the distributed runtime, this value will be multiplied by the number of machines used- Specified by:
getNumConnections
in classAbstractRdbmsEntityProviderConfig
- Returns:
- the number of connections
-
getSchema
public java.lang.String getSchema()
schema to use when reading/writing RDBMS objects- Returns:
- the schema
-
getJdbcUrl
public java.lang.String getJdbcUrl()
jdbc URL pointing to an RDBMS instance- Returns:
- the JDBC URL
-
getUsername
public java.lang.String getUsername()
username to use when connecting to an RDBMS instance- Returns:
- the username
-
getDataSourceId
public java.lang.String getDataSourceId()
data source id to use to connect to an RDBMS instance- Returns:
- the data source id
-
getMaxPrefetchedRows
public java.lang.Integer getMaxPrefetchedRows()
maximum number of rows prefetched during each round trip resultset-database- Returns:
- the maximum number of prefetched rows
-
getName
public java.lang.String getName()
entity provider name- Specified by:
getName
in interfaceCommonLoadableConfig<ProviderFormat>
- Specified by:
getName
in classEntityProviderConfig
- Returns:
- the name of the provider
-
getLabel
public java.lang.String getLabel()
label for the entities loaded from this provider- Specified by:
getLabel
in classEntityProviderConfig
- Returns:
- the custom label
-
getFormat
public ProviderFormat getFormat()
provider format- Returns:
- the format
-
getProps
public java.util.List<GraphPropertyConfig> getProps()
specification of the properties associated with this entity provider- Specified by:
getProps
in classEntityProviderConfig
- Returns:
- the list of vertex properties
-
getKeyType
public IdType getKeyType()
type of the keys- Specified by:
getKeyType
in classEntityProviderConfig
- Returns:
- the key type
-
getSourceVertexProvider
public java.lang.String getSourceVertexProvider()
name of the source vertex provider to be used for this edge provider- Specified by:
getSourceVertexProvider
in classEntityProviderConfig
- Returns:
- the name of the source vertex provider
-
getDestinationVertexProvider
public java.lang.String getDestinationVertexProvider()
name of the destination vertex provider to be used for this edge provider- Specified by:
getDestinationVertexProvider
in classEntityProviderConfig
- Returns:
- the name of the destination vertex provider
-
getLoading
public ProviderLoadingConfig getLoading()
loading-specific configuration- Specified by:
getLoading
in classEntityProviderConfig
- Returns:
- the loading configuration
-
hasKeys
public java.lang.Boolean hasKeys()
indicates if the provided entities data have keys- Specified by:
hasKeys
in classEntityProviderConfig
-
getErrorHandling
public GraphErrorHandlingConfig getErrorHandling()
error handling configuration- Returns:
- the error handling configuration
-
getLocalDateFormat
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> 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
public java.lang.Character getVectorComponentDelimiter()
delimiter for the different components of vector properties
-
getPoint2d
public java.lang.String getPoint2d()
longitude and latitude as floating point values separated by a space
-
getAttributes
public java.util.Map getAttributes()
additional attributes needed to read/write the graph data- Returns:
- the map of attributes
-
getKeystoreAlias
public java.lang.String getKeystoreAlias()
alias to the keystore to use when connecting to database- Specified by:
getKeystoreAlias
in interfaceCommonLoadableConfig<ProviderFormat>
- Specified by:
getKeystoreAlias
in classAbstractRdbmsEntityProviderConfig
- Returns:
- the keystore alias or null if underlying format does not require a keystore
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractRdbmsEntityProviderConfig
-
-