public class PgqlViewGraphExpander extends AbstractGraphExpander<PgqlViewGraphExpander>
| Constructor and Description |
|---|
PgqlViewGraphExpander(PartitionedGraphConfig graphConfig,
PgxSession session,
java.util.function.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.
|
| Modifier and Type | Method and Description |
|---|---|
PgqlViewGraphExpander |
connections(int numConnections)
sets the number of connections to open to load the data in parallel
|
PgqlViewGraphExpander |
dataSourceId(java.lang.String dataSourceId)
sets the dataSourceId to which to connect
|
PgqlViewGraphExpander |
fromPgSql(java.lang.String sqlGraphName)
Expand from a (different) SQL Property Graph.
|
PgqlViewGraphExpander |
fromPgSql(java.lang.String schemaName,
java.lang.String sqlGraphName)
Expand from a (different) SQL Property Graph.
|
PgqlViewGraphExpander |
fromPgView(java.lang.String pgViewName)
Expand from a (different) PG View.
|
PgqlViewGraphExpander |
fromPgView(java.lang.String schemaName,
java.lang.String pgViewName)
Expand from a (different) PG View.
|
PgqlViewGraphExpander |
jdbcUrl(java.lang.String jdbcUrl)
sets the jdbcUrl to use for connecting to the DB
|
PgqlViewGraphExpander |
keystoreAlias(java.lang.String keystoreAlias)
sets the keystore alias to retrieve the password from the keystore
|
PgqlViewGraphExpander |
password(java.lang.String password)
sets the password to use for connecting to the database
|
PreparedPgViewPgqlQuery |
preparedPgqlQuery(java.lang.String query)
Add a new prepared PGQL query to the expansion.
|
PgqlViewGraphExpander |
queryPgql(java.lang.String query)
Add a PGQL query to the expansion.
|
PgqlViewGraphExpander |
username(java.lang.String userName)
sets the username of the DB user to use to connect to the DB
|
edgePropertiesMergingStrategy, expand, expand, expandAsync, expandAsync, expandNewSnapshot, expandNewSnapshotAsync, vertexPropertiesMergingStrategy, withConfigpublic PgqlViewGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, java.util.function.Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig,PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup)
GenericGraphExpander.withPgql() to acquire an instance of this class
instead.graphConfig - Config of the graph being expanded.session - Session calling the expand operation.expansionFunction - A function calling the actual expand operation.public PgqlViewGraphExpander connections(int numConnections)
numConnections - the number of connectionspublic PgqlViewGraphExpander dataSourceId(java.lang.String dataSourceId)
dataSourceId - the datasourceIdpublic PgqlViewGraphExpander fromPgSql(java.lang.String sqlGraphName)
sqlGraphName - The SQL Graph name.public PgqlViewGraphExpander fromPgSql(java.lang.String schemaName, java.lang.String sqlGraphName)
schemaName - The SQL Schema name.sqlGraphName - The SQL Graph name.public PgqlViewGraphExpander fromPgView(java.lang.String pgViewName)
pgViewName - The name of the view.public PgqlViewGraphExpander fromPgView(java.lang.String schemaName, java.lang.String pgViewName)
schemaName - The name of the schema.pgViewName - The name of the view.public PgqlViewGraphExpander jdbcUrl(java.lang.String jdbcUrl)
jdbcUrl - the jdbc urlpublic PgqlViewGraphExpander keystoreAlias(java.lang.String keystoreAlias)
keystoreAlias - the keystore aliaspublic PgqlViewGraphExpander password(java.lang.String password)
password - the passwordpublic PreparedPgViewPgqlQuery preparedPgqlQuery(java.lang.String query)
query - The query.public PgqlViewGraphExpander queryPgql(java.lang.String query)
query - The query.public PgqlViewGraphExpander username(java.lang.String userName)
userName - the username