Class AbstractRdbmsEntityProviderConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.EntityProviderConfig
oracle.pgx.config.AbstractRdbmsEntityProviderConfig
- All Implemented Interfaces:
CommonLoadableConfig<ProviderFormat>, DbConnectionConfig, oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
- Direct Known Subclasses:
RdbmsEntityProviderConfig
public abstract class AbstractRdbmsEntityProviderConfig
extends EntityProviderConfig
implements DbConnectionConfig
-
Field Summary
Fields inherited from class AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringgetDataSourceId(AbstractPartitionedGraphConfig graphConfig) abstract Stringabstract List<? extends ForeignKeyColumnDescriptor> Get the destination key declaration associated with this entity provider config.getJdbcUrl(AbstractPartitionedGraphConfig graphConfig) abstract Stringabstract StringGets the keystore alias.getKeystoreAlias(AbstractPartitionedGraphConfig graphConfig) Gives the name of the table in the database the we should load the data from.getMaxPrefetchedRows(AbstractPartitionedGraphConfig graphConfig) abstract Integernumber of connections to read/write data from/to the RDBMS tablegetNumConnections(AbstractPartitionedGraphConfig graphConfig) getNumConnections(AbstractPartitionedGraphConfig graphConfig, int machineCount, int defaultNumConnectionsTotal) getSchema(AbstractPartitionedGraphConfig graphConfig) abstract Stringabstract List<? extends ForeignKeyColumnDescriptor> Get the source key declaration associated with this entity provider config.getUsername(AbstractPartitionedGraphConfig graphConfig) List<? extends ForeignKeyColumnDescriptor> Validate and get the source key declaration associated with this provider configuration.List<? extends ForeignKeyColumnDescriptor> Validate and get the source key declaration associated with this provider configuration.abstract booleaninthashCode()booleanCheck if this graph configuration's format supports having vector properties or notMethods inherited from class EntityProviderConfig
getDestinationVertexKeyType, getDestinationVertexProvider, getKeyColumns, getKeyType, getLabel, getLoading, getName, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getProps, getSourceVertexKeyType, getSourceVertexProvider, getValidatedKeyColumns, getValidatedLabel, hasKeys, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorPropertiesMethods inherited from class AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, getValues, parseString, setSerializableMethods inherited from interface CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getAttributes, getErrorHandling, getFormat, getLocalDateFormat, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiterMethods inherited from interface DbConnectionConfig
getDataSourceId, getJdbcUrl, getMaxPrefetchedRows, getSchema, getUsername
-
Constructor Details
-
AbstractRdbmsEntityProviderConfig
public AbstractRdbmsEntityProviderConfig()
-
-
Method Details
-
toEntityProviderConfigBuilder
- Specified by:
toEntityProviderConfigBuilderin interfaceoracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
-
hasDefaultValue
-
getKeyColumn
- See Also:
-
getSourceColumn
- See Also:
-
getDestinationColumn
- See Also:
-
getSourceKeyColumns
Get the source key declaration associated with this entity provider config. A source key is composed of one or more source key columns, each referring to one key column of the source vertex provider. UsegetValidatedSourceKeyColumns()()} instead of this function, as that function will also consider legacy configs.- Returns:
- Source key columns declared in the config.
- Since:
- 25.2.0
-
getValidatedSourceKeyColumns
Validate and get the source key declaration associated with this provider configuration. This function will use the source key returned by eithergetSourceKeyColumns()or legacy function.- Returns:
- A list of validated foreign key column descriptors.
- Since:
- 25.2.0
-
getDestinationKeyColumns
Get the destination key declaration associated with this entity provider config. A destination key is composed of one or more destination key columns, each referring to one key column of the destination vertex provider. UsegetValidatedDestinationKeyColumns()instead of this function, as that function will also consider legacy configs.- Returns:
- Destination key columns declared in the config.
- Since:
- 25.2.0
-
getValidatedDestinationKeyColumns
Validate and get the source key declaration associated with this provider configuration. This function will use the source key returned by eithergetDestinationKeyColumns()or legacy function.- Returns:
- A list of validated foreign key column descriptors.
- Since:
- 25.2.0
-
supportsVectorProperties
public boolean supportsVectorProperties()Check if this graph configuration's format supports having vector properties or not- Overrides:
supportsVectorPropertiesin classEntityProviderConfig- Returns:
trueif this graph configuration's format supports vector properties,falseotherwise
-
equals
- Overrides:
equalsin classEntityProviderConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classEntityProviderConfig
-
getKeystoreAlias
Description copied from interface:CommonLoadableConfigGets the keystore alias.- Specified by:
getKeystoreAliasin interfaceCommonLoadableConfig<ProviderFormat>- Returns:
- the keystore alias or null if underlying format does not require a keystore
-
getDatabaseTableName
-
getNumConnections
number of connections to read/write data from/to the RDBMS table- Returns:
- the number of connections
-
getLoadedDatabaseTableName
Gives the name of the table in the database the we should load the data from. If the database table name field is not set, it uses the name of the (PGX) table in the graph config.- Returns:
- the name of the database table to load the data from
-
getDataSourceId
-
getJdbcUrl
-
getUsername
-
getKeystoreAlias
-
getSchema
-
getMaxPrefetchedRows
-
getNumConnections
-
getNumConnections
public Integer getNumConnections(AbstractPartitionedGraphConfig graphConfig, int machineCount, int defaultNumConnectionsTotal)
-