Class 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, use withPgql() to start configuring the graph expansion from PG Views, using a set of PGQL queries.
    • 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, use PgxGraph.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.