public class PreparedPgViewPgqlQuery extends PgqlViewGraphExpander implements PreparedPgqlQueryBuilder<PreparedPgViewPgqlQuery>
Modifier and Type | Method and Description |
---|---|
PgqlViewGraphExpander |
connections(int numConnections)
sets the number of connections to open to load the data in parallel
|
PgqlViewGraphExpander |
dataSourceId(java.lang.String dataSourceId)
sets the dataSourceId to which to connect
|
PgqlViewGraphExpander |
edgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy)
Set the strategy for how edge properties of duplicate elements are handled.
|
PgxGraph |
expand()
Call the expand operation and await execution.
|
PgxGraph |
expand(java.lang.String newGraphName)
Call the expand operation and await execution.
|
PgxFuture<PgxGraph> |
expandAsync()
Call the expand operation.
|
PgxFuture<PgxGraph> |
expandAsync(java.lang.String newGraphName)
Call the expand operation.
|
PgxGraph |
expandNewSnapshot()
Blocking version of
AbstractGraphExpander.expandNewSnapshotAsync() . |
PgxFuture<PgxGraph> |
expandNewSnapshotAsync()
Call the expand operation.
|
PgqlViewGraphExpander |
fromPgSql(java.lang.String sqlGraphName)
Expand from a (different) SQL Property Graph.
|
PgqlViewGraphExpander |
fromPgSql(java.lang.String schemaName,
java.lang.String sqlGraphName)
Expand from a (different) SQL Property Graph.
|
PgqlViewGraphExpander |
fromPgView(java.lang.String pgViewName)
Expand from a (different) PG View.
|
PgqlViewGraphExpander |
fromPgView(java.lang.String schemaName,
java.lang.String pgViewName)
Expand from a (different) PG View.
|
PgqlViewGraphExpander |
jdbcUrl(java.lang.String jdbcUrl)
sets the jdbcUrl to use for connecting to the DB
|
PgqlViewGraphExpander |
keystoreAlias(java.lang.String keystoreAlias)
sets the keystore alias to retrieve the password from the keystore
|
PgqlViewGraphExpander |
owner(java.lang.String owner)
sets the owner (schema) of the PG view from which to load the data
|
PgqlViewGraphExpander |
password(java.lang.String password)
sets the password to use for connecting to the database
|
PreparedPgViewPgqlQuery |
preparedPgqlQuery(java.lang.String query)
Add a new prepared PGQL query to the expansion.
|
PgqlViewGraphExpander |
queryPgql(java.lang.String query)
Add a PGQL query to the expansion.
|
PgqlViewGraphExpander |
schema(java.lang.String schema)
sets the schema from which to load the PG view
|
PgqlViewGraphExpander |
username(java.lang.String userName)
sets the username of the DB user to use to connect to the DB
|
PgqlViewGraphExpander |
vertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy)
Set the strategy for how vertex properties of duplicate elements are handled.
|
PreparedPgViewPgqlQuery |
withArg(int position,
QueryArgumentType type,
java.lang.Object value) |
PgqlViewGraphExpander |
withConfig(PartitionedGraphConfig config)
Specify a graph config used to load the additional graph data.
|
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 PgqlViewGraphExpander connections(int numConnections)
PgqlViewGraphExpander
connections
in class PgqlViewGraphExpander
numConnections
- the number of connectionspublic PgqlViewGraphExpander dataSourceId(java.lang.String dataSourceId)
PgqlViewGraphExpander
dataSourceId
in class PgqlViewGraphExpander
dataSourceId
- the datasourceIdpublic PgqlViewGraphExpander edgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy)
AbstractGraphExpander
PropertyMergeStrategy.getDefault()
.edgePropertiesMergingStrategy
in class AbstractGraphExpander<PgqlViewGraphExpander>
edgePropertyMergeStrategy
- The edge property merge strategy.public PgxGraph expand() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
AbstractGraphExpander
expand
in class AbstractGraphExpander<PgqlViewGraphExpander>
java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxGraph expand(java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
AbstractGraphExpander
expand
in class AbstractGraphExpander<PgqlViewGraphExpander>
newGraphName
- The new graph name.java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxFuture<PgxGraph> expandAsync()
AbstractGraphExpander
expandAsync
in class AbstractGraphExpander<PgqlViewGraphExpander>
public PgxFuture<PgxGraph> expandAsync(java.lang.String newGraphName)
AbstractGraphExpander
expandAsync
in class AbstractGraphExpander<PgqlViewGraphExpander>
public PgxGraph expandNewSnapshot() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
AbstractGraphExpander
AbstractGraphExpander.expandNewSnapshotAsync()
.
Calls the expand operation and awaits execution. This creates a new snapshot, instead of a new graph.expandNewSnapshot
in class AbstractGraphExpander<PgqlViewGraphExpander>
java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxFuture<PgxGraph> expandNewSnapshotAsync()
AbstractGraphExpander
expandNewSnapshotAsync
in class AbstractGraphExpander<PgqlViewGraphExpander>
public PgqlViewGraphExpander fromPgSql(java.lang.String sqlGraphName)
PgqlViewGraphExpander
fromPgSql
in class PgqlViewGraphExpander
sqlGraphName
- The SQL Graph name.public PgqlViewGraphExpander fromPgSql(java.lang.String schemaName, java.lang.String sqlGraphName)
PgqlViewGraphExpander
fromPgSql
in class PgqlViewGraphExpander
schemaName
- The SQL Schema name.sqlGraphName
- The SQL Graph name.public PgqlViewGraphExpander fromPgView(java.lang.String pgViewName)
PgqlViewGraphExpander
fromPgView
in class PgqlViewGraphExpander
pgViewName
- The name of the view.public PgqlViewGraphExpander fromPgView(java.lang.String schemaName, java.lang.String pgViewName)
PgqlViewGraphExpander
fromPgView
in class PgqlViewGraphExpander
schemaName
- The name of the schema.pgViewName
- The name of the view.public PgqlViewGraphExpander jdbcUrl(java.lang.String jdbcUrl)
PgqlViewGraphExpander
jdbcUrl
in class PgqlViewGraphExpander
jdbcUrl
- the jdbc urlpublic PgqlViewGraphExpander keystoreAlias(java.lang.String keystoreAlias)
PgqlViewGraphExpander
keystoreAlias
in class PgqlViewGraphExpander
keystoreAlias
- the keystore aliaspublic PgqlViewGraphExpander owner(java.lang.String owner)
PgqlViewGraphExpander
owner
in class PgqlViewGraphExpander
owner
- the ownerpublic PgqlViewGraphExpander password(java.lang.String password)
PgqlViewGraphExpander
password
in class PgqlViewGraphExpander
password
- the passwordpublic PreparedPgViewPgqlQuery preparedPgqlQuery(java.lang.String query)
PgqlViewGraphExpander
preparedPgqlQuery
in class PgqlViewGraphExpander
query
- The query.public PgqlViewGraphExpander queryPgql(java.lang.String query)
PgqlViewGraphExpander
queryPgql
in class PgqlViewGraphExpander
query
- The query.public PgqlViewGraphExpander schema(java.lang.String schema)
PgqlViewGraphExpander
schema
in class PgqlViewGraphExpander
schema
- the schemapublic PgqlViewGraphExpander username(java.lang.String userName)
PgqlViewGraphExpander
username
in class PgqlViewGraphExpander
userName
- the usernamepublic PgqlViewGraphExpander vertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy)
AbstractGraphExpander
PropertyMergeStrategy.getDefault()
.vertexPropertiesMergingStrategy
in class AbstractGraphExpander<PgqlViewGraphExpander>
vertexPropertyMergeStrategy
- The vertex property merge strategy.public PgqlViewGraphExpander withConfig(PartitionedGraphConfig config)
AbstractGraphExpander
withConfig
in class AbstractGraphExpander<PgqlViewGraphExpander>
config
- The graph config.