Class PreparedPgViewPgqlQuery
java.lang.Object
oracle.pgx.api.expansion.AbstractGraphExpander<PgqlViewGraphExpander>
oracle.pgx.api.expansion.PgqlViewGraphExpander
oracle.pgx.api.expansion.PreparedPgViewPgqlQuery
- All Implemented Interfaces:
oracle.pgx.api.subgraph.internal.PreparedQueryBuilder<PreparedPgViewPgqlQuery>, PreparedPgqlQueryBuilder<PreparedPgViewPgqlQuery>
public class PreparedPgViewPgqlQuery
extends PgqlViewGraphExpander
implements PreparedPgqlQueryBuilder<PreparedPgViewPgqlQuery>
A configuration builder for graph expansion using a prepared PGQL query.
Use this class to provide all the required arguments for the query or to continue configuring the expand operation.
-
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 connectedgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy) Set the strategy for how edge properties of duplicate elements are handled.expand()Call the expand operation and await execution.Call the expand operation and await execution.Call the expand operation.expandAsync(String newGraphName) Call the expand operation.Blocking version ofAbstractGraphExpander.expandNewSnapshotAsync().Call the expand operation.fromPgPgql(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 DBvertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy) Set the strategy for how vertex properties of duplicate elements are handled.withArg(int position, QueryArgumentType type, Object value) withConfig(PartitionedGraphConfig config) Specify a graph config used to load the additional graph data.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreparedPgqlQueryBuilder
withBooleanArg, withDateArg, withDoubleArg, withFloatArg, withIntegerArg, withLongArg, withStringArg, withTimeArg, withTimestampArg, withTimestampWithTimezoneArg, withTimeWithTimezoneArg
-
Method Details
-
withArg
- Specified by:
withArgin interfaceoracle.pgx.api.subgraph.internal.PreparedQueryBuilder<PreparedPgViewPgqlQuery>
-
expandAsync
Description copied from class:AbstractGraphExpanderCall the expand operation.- Overrides:
expandAsyncin classAbstractGraphExpander<PgqlViewGraphExpander>- Returns:
- The new graph.
-
expandAsync
Description copied from class:AbstractGraphExpanderCall the expand operation.- Overrides:
expandAsyncin classAbstractGraphExpander<PgqlViewGraphExpander>- Returns:
- The new graph.
-
expandNewSnapshotAsync
Description copied from class:AbstractGraphExpanderCall the expand operation. This creates a new snapshot of the base graph, instead of a new graph.- Overrides:
expandNewSnapshotAsyncin classAbstractGraphExpander<PgqlViewGraphExpander>- Returns:
- The new graph.
-
expandNewSnapshot
Description copied from class:AbstractGraphExpanderBlocking version ofAbstractGraphExpander.expandNewSnapshotAsync(). Calls the expand operation and awaits execution. This creates a new snapshot, instead of a new graph.- Overrides:
expandNewSnapshotin classAbstractGraphExpander<PgqlViewGraphExpander>- Returns:
- The new graph.
- Throws:
ExecutionException- when the execution fails.InterruptedException- when the operation gets interrupted.
-
expand
Description copied from class:AbstractGraphExpanderCall the expand operation and await execution.- Overrides:
expandin classAbstractGraphExpander<PgqlViewGraphExpander>- Returns:
- The new graph.
- Throws:
ExecutionException- when the execution fails.InterruptedException- when the operation gets interrupted.
-
expand
Description copied from class:AbstractGraphExpanderCall the expand operation and await execution.- Overrides:
expandin classAbstractGraphExpander<PgqlViewGraphExpander>- Parameters:
newGraphName- The new graph name.- Returns:
- The new graph.
- Throws:
ExecutionException- when the execution fails.InterruptedException- when the operation gets interrupted.
-
vertexPropertiesMergingStrategy
public PgqlViewGraphExpander vertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy) Description copied from class:AbstractGraphExpanderSet the strategy for how vertex properties of duplicate elements are handled. The default strategy is defined byPropertyMergeStrategy.getDefault().- Overrides:
vertexPropertiesMergingStrategyin classAbstractGraphExpander<PgqlViewGraphExpander>- Parameters:
vertexPropertyMergeStrategy- The vertex property merge strategy.- Returns:
- This expander.
-
edgePropertiesMergingStrategy
public PgqlViewGraphExpander edgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy) Description copied from class:AbstractGraphExpanderSet the strategy for how edge properties of duplicate elements are handled. The default strategy is defined byPropertyMergeStrategy.getDefault().- Overrides:
edgePropertiesMergingStrategyin classAbstractGraphExpander<PgqlViewGraphExpander>- Parameters:
edgePropertyMergeStrategy- The edge property merge strategy.- Returns:
- This expander.
-
fromPgPgql
Description copied from class:PgqlViewGraphExpanderExpand from a (different) PG PGQL.- Overrides:
fromPgPgqlin classPgqlViewGraphExpander- Parameters:
pgGraphName- The name of the graph.- Returns:
- This expander.
-
fromPgPgql
Description copied from class:PgqlViewGraphExpanderExpand from a (different) PG PGQL.- Overrides:
fromPgPgqlin classPgqlViewGraphExpander- Parameters:
schemaName- The name of the schema.pgGraphName- The name of the graph.- Returns:
- This expander.
-
fromPgSql
Description copied from class:PgqlViewGraphExpanderExpand from a (different) SQL Property Graph.- Overrides:
fromPgSqlin classPgqlViewGraphExpander- Parameters:
sqlGraphName- The SQL Graph name.- Returns:
- This expander.
-
fromPgSql
Description copied from class:PgqlViewGraphExpanderExpand from a (different) SQL Property Graph.- Overrides:
fromPgSqlin classPgqlViewGraphExpander- Parameters:
schemaName- The SQL Schema name.sqlGraphName- The SQL Graph name.- Returns:
- This expander.
-
queryPgql
Description copied from class:PgqlViewGraphExpanderAdd a PGQL query to the expansion. Additional data matching this query will be loaded.- Overrides:
queryPgqlin classPgqlViewGraphExpander- Parameters:
query- The query.- Returns:
- This expander.
-
preparedPgqlQuery
Description copied from class:PgqlViewGraphExpanderAdd 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.- Overrides:
preparedPgqlQueryin classPgqlViewGraphExpander- Parameters:
query- The query.- Returns:
- A builder where query arguments must be provided.
-
withConfig
Description copied from class:AbstractGraphExpanderSpecify a graph config used to load the additional graph data. This config will always be used instead of the config of the base graph.- Overrides:
withConfigin classAbstractGraphExpander<PgqlViewGraphExpander>- Parameters:
config- The graph config.- Returns:
- This expander.
-
dataSourceId
Description copied from class:PgqlViewGraphExpandersets the dataSourceId to which to connect- Overrides:
dataSourceIdin classPgqlViewGraphExpander- Parameters:
dataSourceId- the datasourceId- Returns:
- this loader
-
jdbcUrl
Description copied from class:PgqlViewGraphExpandersets the jdbcUrl to use for connecting to the DB- Overrides:
jdbcUrlin classPgqlViewGraphExpander- Parameters:
jdbcUrl- the jdbc url- Returns:
- this loader
-
username
Description copied from class:PgqlViewGraphExpandersets the username of the DB user to use to connect to the DB- Overrides:
usernamein classPgqlViewGraphExpander- Parameters:
userName- the username- Returns:
- this loader
-
keystoreAlias
Description copied from class:PgqlViewGraphExpandersets the keystore alias to retrieve the password from the keystore- Overrides:
keystoreAliasin classPgqlViewGraphExpander- Parameters:
keystoreAlias- the keystore alias- Returns:
- this loader
-
password
Description copied from class:PgqlViewGraphExpandersets the password to use for connecting to the database- Overrides:
passwordin classPgqlViewGraphExpander- Parameters:
password- the password- Returns:
- this loader
-
connections
Description copied from class:PgqlViewGraphExpandersets the number of connections to open to load the data in parallel- Overrides:
connectionsin classPgqlViewGraphExpander- Parameters:
numConnections- the number of connections- Returns:
- this loader
-