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.
|
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 PgViewSubgraphReader connections(int numConnections)
PgViewSubgraphReader
connections
in class PgViewSubgraphReader
numConnections
- the number of connectionspublic PgViewSubgraphReader dataSourceId(java.lang.String dataSourceId)
PgViewSubgraphReader
dataSourceId
in class PgViewSubgraphReader
dataSourceId
- the datasourceIdpublic PgViewSubgraphReader jdbcUrl(java.lang.String jdbcUrl)
PgViewSubgraphReader
jdbcUrl
in class PgViewSubgraphReader
jdbcUrl
- the jdbc urlpublic PgViewSubgraphReader keystoreAlias(java.lang.String keystoreAlias)
PgViewSubgraphReader
keystoreAlias
in class PgViewSubgraphReader
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<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()
AbstractSubgraphReader
loadAsync
in class PgViewSubgraphReader
public PgxFuture<PgxGraph> loadAsync(java.lang.String graphName)
AbstractSubgraphReader
loadAsync
in class PgViewSubgraphReader
graphName
- the name of the graphpublic PgViewSubgraphReader owner(java.lang.String owner)
PgViewSubgraphReader
owner
in class PgViewSubgraphReader
owner
- the ownerpublic PgViewSubgraphReader password(java.lang.String password)
PgViewSubgraphReader
password
in class PgViewSubgraphReader
password
- the passwordpublic PreparedPgViewPgqlQuery preparedPgqlQuery(java.lang.String query)
PgViewSubgraphReader
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 PgViewSubgraphReader
query
- The PGQL query.public PgViewSubgraphReader queryPgql(java.lang.String query)
PgViewSubgraphReader
queryPgql
in class PgViewSubgraphReader
query
- the PGQL query to use for filteringpublic PgViewSubgraphReader schema(java.lang.String schema)
PgViewSubgraphReader
schema
in class PgViewSubgraphReader
schema
- the schemapublic PgViewSubgraphReader username(java.lang.String userName)
PgViewSubgraphReader
username
in class PgViewSubgraphReader
userName
- the usernamepublic PgViewSubgraphReader withConfig(PartitionedGraphConfig config)
PgViewSubgraphReader
withConfig
in class PgViewSubgraphReader
config
- the configuration of the graph to load