Package oracle.pgx.api.expansion
Class PgqlViewGraphExpander
java.lang.Object
oracle.pgx.api.expansion.AbstractGraphExpander<PgqlViewGraphExpander>
oracle.pgx.api.expansion.PgqlViewGraphExpander
- Direct Known Subclasses:
PreparedPgViewPgqlQuery
Expander for PGQL-based graph expansions from either PG View or SQL Property Graphs.
-
Constructor Summary
ConstructorsConstructorDescriptionPgqlViewGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig, PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup) Create a new expander from a base graph. -
Method Summary
Modifier and TypeMethodDescriptionconnections(int numConnections) sets the number of connections to open to load the data in paralleldataSourceId(String dataSourceId) sets the dataSourceId to which to connectfromPgPgql(String pgGraphName) Expand from a (different) PG PGQL.fromPgPgql(String schemaName, String pgGraphName) Expand from a (different) PG PGQL.Expand from a (different) SQL Property Graph.Expand from a (different) SQL Property Graph.sets the jdbcUrl to use for connecting to the DBkeystoreAlias(String keystoreAlias) sets the keystore alias to retrieve the password from the keystoresets the password to use for connecting to the databasepreparedPgqlQuery(String query) Add a new prepared PGQL query to the expansion.Add a PGQL query to the expansion.sets the username of the DB user to use to connect to the DBMethods inherited from class oracle.pgx.api.expansion.AbstractGraphExpander
edgePropertiesMergingStrategy, expand, expand, expandAsync, expandAsync, expandNewSnapshot, expandNewSnapshotAsync, vertexPropertiesMergingStrategy, withConfig
-
Constructor Details
-
PgqlViewGraphExpander
public PgqlViewGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig, PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup) Create a new expander from a base graph. Do not use this constructor, useGenericGraphExpander.withPgql()to acquire an instance of this class instead.- Parameters:
graphConfig- Config of the graph being expanded.session- Session calling the expand operation.expansionFunction- A function calling the actual expand operation.
-
-
Method Details
-
fromPgPgql
Expand from a (different) PG PGQL.- Parameters:
pgGraphName- The name of the graph.- Returns:
- This expander.
-
fromPgPgql
Expand from a (different) PG PGQL.- Parameters:
schemaName- The name of the schema.pgGraphName- The name of the graph.- Returns:
- This expander.
-
fromPgSql
Expand from a (different) SQL Property Graph.- Parameters:
sqlGraphName- The SQL Graph name.- Returns:
- This expander.
-
fromPgSql
Expand from a (different) SQL Property Graph.- Parameters:
schemaName- The SQL Schema name.sqlGraphName- The SQL Graph name.- Returns:
- This expander.
-
queryPgql
Add a PGQL query to the expansion. Additional data matching this query will be loaded.- Parameters:
query- The query.- Returns:
- This expander.
-
preparedPgqlQuery
Add a new prepared PGQL query to the expansion. Additional data matching this query will be loaded. This returns a new builder where arguments for the query must be provided.- Parameters:
query- The query.- Returns:
- A builder where query arguments must be provided.
-
dataSourceId
sets the dataSourceId to which to connect- Parameters:
dataSourceId- the datasourceId- Returns:
- this loader
-
jdbcUrl
sets the jdbcUrl to use for connecting to the DB- Parameters:
jdbcUrl- the jdbc url- Returns:
- this loader
-
username
sets the username of the DB user to use to connect to the DB- Parameters:
userName- the username- Returns:
- this loader
-
keystoreAlias
sets the keystore alias to retrieve the password from the keystore- Parameters:
keystoreAlias- the keystore alias- Returns:
- this loader
-
password
sets the password to use for connecting to the database- Parameters:
password- the password- Returns:
- this loader
-
connections
sets the number of connections to open to load the data in parallel- Parameters:
numConnections- the number of connections- Returns:
- this loader
-