public class PreparedPgViewPgqlQuery extends PgViewSubgraphReader implements PreparedPgqlQueryBuilder<PreparedPgViewPgqlQuery>
| Modifier and Type | Method and Description |
|---|---|
PgViewSubgraphReader |
connections(int numConnections)
sets the number of connections to open to load the data in parallel
|
PgViewSubgraphReader |
dataSourceId(java.lang.String dataSourceId)
sets the dataSourceId to which to connect
|
PgViewSubgraphReader |
jdbcUrl(java.lang.String jdbcUrl)
sets the jdbcUrl to use for connecting to the DB
|
PgViewSubgraphReader |
keystoreAlias(java.lang.String keystoreAlias)
sets the keystore alias to retrieve the password from the keystore
|
PgxGraph |
load(java.lang.String graphName)
Blocking version of
AbstractSubgraphReader.loadAsync(String). |
PgxFuture<PgxGraph> |
loadAsync()
Load the subgraph.
|
PgxFuture<PgxGraph> |
loadAsync(java.lang.String graphName)
Load the subgraph.
|
PgViewSubgraphReader |
owner(java.lang.String owner)
sets the owner (schema) of the PG view from which to load the data
|
PgViewSubgraphReader |
password(java.lang.String password)
sets the password to use for connecting to the database
|
PreparedPgViewPgqlQuery |
preparedPgqlQuery(java.lang.String query)
Adds a prepared query to list of queries that will be executed to load the subgraph.
|
PgViewSubgraphReader |
queryPgql(java.lang.String query)
Adds another filtering query to the list of queries that will be executed to load the subgraph.
|
PgViewSubgraphReader |
schema(java.lang.String schema)
sets the schema from which to load the PG view
|
PgViewSubgraphReader |
username(java.lang.String userName)
sets the username of the DB user to use to connect to the DB
|
PreparedPgViewPgqlQuery |
withArg(int position, QueryArgumentType type, java.lang.Object value) |
PgViewSubgraphReader |
withConfig(PartitionedGraphConfig config)
sets the graph configuration to use for loading the subgraph.
|
loadequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithBooleanArg, withDateArg, withDoubleArg, withFloatArg, withIntegerArg, withLongArg, withStringArg, withTimeArg, withTimestampArg, withTimestampWithTimezoneArg, withTimeWithTimezoneArgpublic PreparedPgViewPgqlQuery withArg(int position, QueryArgumentType type, java.lang.Object value)
withArg in interface oracle.pgx.api.subgraph.internal.PreparedQueryBuilder<PreparedPgViewPgqlQuery>public PgViewSubgraphReader connections(int numConnections)
PgViewSubgraphReaderconnections in class PgViewSubgraphReadernumConnections - the number of connectionspublic PgViewSubgraphReader dataSourceId(java.lang.String dataSourceId)
PgViewSubgraphReaderdataSourceId in class PgViewSubgraphReaderdataSourceId - the datasourceIdpublic PgViewSubgraphReader jdbcUrl(java.lang.String jdbcUrl)
PgViewSubgraphReaderjdbcUrl in class PgViewSubgraphReaderjdbcUrl - the jdbc urlpublic PgViewSubgraphReader keystoreAlias(java.lang.String keystoreAlias)
PgViewSubgraphReaderkeystoreAlias in class PgViewSubgraphReaderkeystoreAlias - the keystore aliaspublic PgxGraph load(java.lang.String graphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
AbstractSubgraphReaderAbstractSubgraphReader.loadAsync(String). Starts the reading operation and awaits its completion.load in class AbstractSubgraphReader<PgViewSubgraphReader>graphName - the graph namejava.util.concurrent.ExecutionException - When the operation failed.java.lang.InterruptedException - When the asynchronous operation is interrupted.public PgxFuture<PgxGraph> loadAsync()
AbstractSubgraphReaderloadAsync in class PgViewSubgraphReaderpublic PgxFuture<PgxGraph> loadAsync(java.lang.String graphName)
AbstractSubgraphReaderloadAsync in class PgViewSubgraphReadergraphName - the name of the graphpublic PgViewSubgraphReader owner(java.lang.String owner)
PgViewSubgraphReaderowner in class PgViewSubgraphReaderowner - the ownerpublic PgViewSubgraphReader password(java.lang.String password)
PgViewSubgraphReaderpassword in class PgViewSubgraphReaderpassword - the passwordpublic PreparedPgViewPgqlQuery preparedPgqlQuery(java.lang.String query)
PgViewSubgraphReaderMATCH clause. This returns a builder which can be used to specify arguments for the prepared query. All the arguments must be provided before the reading operation is triggered.preparedPgqlQuery in class PgViewSubgraphReaderquery - The PGQL query.public PgViewSubgraphReader queryPgql(java.lang.String query)
PgViewSubgraphReaderqueryPgql in class PgViewSubgraphReaderquery - the PGQL query to use for filteringpublic PgViewSubgraphReader schema(java.lang.String schema)
PgViewSubgraphReaderschema in class PgViewSubgraphReaderschema - the schemapublic PgViewSubgraphReader username(java.lang.String userName)
PgViewSubgraphReaderusername in class PgViewSubgraphReaderuserName - the usernamepublic PgViewSubgraphReader withConfig(PartitionedGraphConfig config)
PgViewSubgraphReaderwithConfig in class PgViewSubgraphReaderconfig - the configuration of the graph to load