Package oracle.pgx.api.subgraph
Class GenericSubgraphReader
java.lang.Object
oracle.pgx.api.subgraph.AbstractSubgraphReader<GenericSubgraphReader>
oracle.pgx.api.subgraph.GenericSubgraphReader
Entry point for subgraph reading. This reader does not support any operation by itself.
To use the initial subgraph reading feature, specify a source. You may, for example, use
fromPgPgql(String)
to start configuring a reading operation from PG Views, using some PGQL queries.-
Constructor Summary
ConstructorsConstructorDescriptionGenericSubgraphReader(PgxSession session, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup, Function<GraphConfig, PgxFuture<PgxGraph>> readFunction) Create an instance of this generic reader. -
Method Summary
Modifier and TypeMethodDescriptionfromPgPgql(String graphName) Read a subgraph from PG PGQL, using a set of PGQL queries.fromPgPgql(String schemaName, String graphName) Read a subgraph from PG PGQL, using a set of PGQL queries.Read a subgraph of a SQL Property Graph, using a set of PGQL queries.Read a subgraph of a SQL Property Graph, using a set of PGQL queries.Load the subgraph.Methods inherited from class oracle.pgx.api.subgraph.AbstractSubgraphReader
load, load, loadAsync
-
Constructor Details
-
GenericSubgraphReader
public GenericSubgraphReader(PgxSession session, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup, Function<GraphConfig, PgxFuture<PgxGraph>> readFunction) Create an instance of this generic reader. Do not use this constructor, usePgxSession.readSubgraph()to acquire an instance instead.- Parameters:
session- The session for the read operation.keystoreLookup- A helper of looking up keystore entries.readFunction- A function used to read the actual subgraph.
-
-
Method Details
-
loadAsync
Description copied from class:AbstractSubgraphReaderLoad the subgraph.- Specified by:
loadAsyncin classAbstractSubgraphReader<GenericSubgraphReader>- Parameters:
graphName- the name of the graph- Returns:
- The subgraph.
-
fromPgPgql
Read a subgraph from PG PGQL, using a set of PGQL queries.- Parameters:
graphName- The name of the graph in the database.- Returns:
- A config builder for the read operation.
-
fromPgPgql
Read a subgraph from PG PGQL, using a set of PGQL queries.- Parameters:
graphName- The name of the graph in the database.schemaName- The name of the schema in the database.- Returns:
- A config builder for the read operation.
-
fromPgSql
Read a subgraph of a SQL Property Graph, using a set of PGQL queries.- Parameters:
graphName- The SQL graph name.- Returns:
- A config builder for the read operation.
-
fromPgSql
Read a subgraph of a SQL Property Graph, using a set of PGQL queries.- Parameters:
graphName- The SQL schema name.graphName- The SQL graph name.- Returns:
- A config builder for the read operation.
-