public class PreparedPgViewPgqlQuery extends PgqlBasedSubgraphReader<R,P> implements PreparedPgqlQueryBuilder<PreparedPgViewPgqlQuery>
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
|
PreparedPgViewPgqlQuery |
withArg(int position,
QueryArgumentType type,
java.lang.Object value) |
R |
withConfig(PartitionedGraphConfig config)
sets the graph configuration to use for loading the subgraph.
|
load
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withBooleanArg, withDateArg, withDoubleArg, withFloatArg, withIntegerArg, withLongArg, withStringArg, withTimeArg, withTimestampArg, withTimestampWithTimezoneArg, withTimeWithTimezoneArg
public PreparedPgViewPgqlQuery withArg(int position, QueryArgumentType type, java.lang.Object value)
withArg
in interface oracle.pgx.api.subgraph.internal.PreparedQueryBuilder<PreparedPgViewPgqlQuery>
public R connections(int numConnections)
PgqlBasedSubgraphReader
connections
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)
PgqlBasedSubgraphReader
dataSourceId
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
dataSourceId
- the datasourceIdpublic R jdbcUrl(java.lang.String jdbcUrl)
PgqlBasedSubgraphReader
jdbcUrl
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)
PgqlBasedSubgraphReader
keystoreAlias
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
AbstractSubgraphReader
AbstractSubgraphReader.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()
AbstractSubgraphReader
loadAsync
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
public PgxFuture<PgxGraph> loadAsync(java.lang.String graphName)
AbstractSubgraphReader
loadAsync
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)
PgqlBasedSubgraphReader
owner
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
owner
- the ownerpublic R password(java.lang.String password)
PgqlBasedSubgraphReader
password
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
password
- the passwordpublic P preparedPgqlQuery(java.lang.String query)
PgqlBasedSubgraphReader
MATCH
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)
PgqlBasedSubgraphReader
queryPgql
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)
PgqlBasedSubgraphReader
schema
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
schema
- the schemapublic R username(java.lang.String userName)
PgqlBasedSubgraphReader
username
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
userName
- the usernamepublic R withConfig(PartitionedGraphConfig config)
PgqlBasedSubgraphReader
withConfig
in class PgqlBasedSubgraphReader<R extends PgqlBasedSubgraphReader<R,P>,P extends PgqlBasedSubgraphReader<R,P> & PreparedPgqlQueryBuilder<P>>
config
- the configuration of the graph to load