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 |
fromPgView(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 |
owner(java.lang.String owner)
sets the owner (schema) of the PG view from which to load the data
|
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 |
schema(java.lang.String schema)
sets the schema from which to load the PG view
|
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, withConfig
public 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 fromPgView(java.lang.String pgViewName)
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 owner(java.lang.String owner)
owner
- the ownerpublic 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 schema(java.lang.String schema)
schema
- the schemapublic PgqlViewGraphExpander username(java.lang.String userName)
userName
- the username