Package oracle.pgx.api.expansion
Class GenericGraphExpander
- java.lang.Object
-
- oracle.pgx.api.expansion.AbstractGraphExpander<GenericGraphExpander>
-
- oracle.pgx.api.expansion.GenericGraphExpander
-
public class GenericGraphExpander extends AbstractGraphExpander<GenericGraphExpander>
Entry point for graph expansion. This expander does not support any operations by itself. To use this feature, specify the actual expansion mode. You may, for example, usewithPgql()
to start configuring the graph expansion from PG Views, using a set of PGQL queries.
-
-
Constructor Summary
Constructors Constructor Description GenericGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, java.util.function.Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig,PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup)
Create a new instance of this generic expander.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgqlViewGraphExpander
withPgql()
Expand the graph from PG Views, using a set of PGQL queries.-
Methods inherited from class oracle.pgx.api.expansion.AbstractGraphExpander
edgePropertiesMergingStrategy, expand, expand, expandAsync, expandAsync, expandNewSnapshot, expandNewSnapshotAsync, vertexPropertiesMergingStrategy, withConfig
-
-
-
-
Constructor Detail
-
GenericGraphExpander
public GenericGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, java.util.function.Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig,PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup)
Create a new instance of this generic expander. Do not use this constructor, usePgxGraph.expandGraph()
to acquire an instance of this class instead.- Parameters:
graphConfig
- The config of the base graph, i.e., the graph being expanded.session
- The session that this graph belongs to.expansionFunction
- A function used to execute the actual expand operation.keystoreLookup
- A helper to lookup entries of the keystore.
-
-
Method Detail
-
withPgql
public PgqlViewGraphExpander withPgql()
Expand the graph from PG Views, using a set of PGQL queries.- Returns:
- The expander for PGQL.
-
-