public class PreparedPgSqlPgqlQuery extends PgqlBasedSubgraphReader<R,P> implements PreparedPgqlQueryBuilder<PreparedPgSqlPgqlQuery>
| Modifier and Type | Method and Description |
|---|---|
R |
connections(int numConnections)
sets the number of connections to open to load the data in parallel
|
R |
dataSourceId(java.lang.String dataSourceId)
sets the dataSourceId to which to connect
|
R |
jdbcUrl(java.lang.String jdbcUrl)
sets the jdbcUrl to use for connecting to the DB
|
R |
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.
|
R |
owner(java.lang.String owner)
sets the owner (schema) of the PG view from which to load the data
|
R |
password(java.lang.String password)
sets the password to use for connecting to the database
|
P |
preparedPgqlQuery(java.lang.String query)
Adds a prepared query to list of queries that will be executed to load the subgraph.
|
R |
queryPgql(java.lang.String query)
Adds another filtering query to the list of queries that will be executed to load the subgraph.
|
R |
schema(java.lang.String schema)
sets the schema from which to load the PG view
|
R |
username(java.lang.String userName)
sets the username of the DB user to use to connect to the DB
|
PreparedPgSqlPgqlQuery |
withArg(int position,
QueryArgumentType type,
java.lang.Object value) |
R |
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 PreparedPgSqlPgqlQuery withArg(int position, QueryArgumentType type, java.lang.Object value)
withArg in interface oracle.pgx.api.subgraph.internal.PreparedQueryBuilder<PreparedPgSqlPgqlQuery>public R connections(int numConnections)
PgqlBasedSubgraphReaderconnections in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>numConnections - the number of connectionspublic R dataSourceId(java.lang.String dataSourceId)
PgqlBasedSubgraphReaderdataSourceId in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>dataSourceId - the datasourceIdpublic R jdbcUrl(java.lang.String jdbcUrl)
PgqlBasedSubgraphReaderjdbcUrl in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>jdbcUrl - the jdbc urlpublic R keystoreAlias(java.lang.String keystoreAlias)
PgqlBasedSubgraphReaderkeystoreAlias in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>keystoreAlias - 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<R extends PgqlBasedSubgraphReader<R,P>>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 PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>public PgxFuture<PgxGraph> loadAsync(java.lang.String graphName)
AbstractSubgraphReaderloadAsync in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>graphName - the name of the graphpublic R owner(java.lang.String owner)
PgqlBasedSubgraphReaderowner in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>owner - the ownerpublic R password(java.lang.String password)
PgqlBasedSubgraphReaderpassword in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>password - the passwordpublic P preparedPgqlQuery(java.lang.String query)
PgqlBasedSubgraphReaderMATCH 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 PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>query - The PGQL query.public R queryPgql(java.lang.String query)
PgqlBasedSubgraphReaderqueryPgql in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>query - the PGQL query to use for filteringpublic R schema(java.lang.String schema)
PgqlBasedSubgraphReaderschema in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>schema - the schemapublic R username(java.lang.String userName)
PgqlBasedSubgraphReaderusername in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>userName - the usernamepublic R withConfig(PartitionedGraphConfig config)
PgqlBasedSubgraphReaderwithConfig in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>config - the configuration of the graph to load