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