public class GenericSubgraphReader extends AbstractSubgraphReader<GenericSubgraphReader>
fromPgView(String) to start configuring a reading operation from PG Views, using some PGQL queries.| Constructor and Description |
|---|
GenericSubgraphReader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Function<GraphConfig,PgxFuture<PgxGraph>> readFunction)
Create an instance of this generic reader.
|
| Modifier and Type | Method and Description |
|---|---|
PgViewSubgraphReader |
fromPgView(java.lang.String viewName)
Read a subgraph from PG Views, using a set of PGQL queries.
|
PgxFuture<PgxGraph> |
loadAsync()
Load the subgraph.
|
loadpublic GenericSubgraphReader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Function<GraphConfig,PgxFuture<PgxGraph>> readFunction)
PgxSession.readSubgraph() to acquire an instance instead.session - The session for the read operation.core - The core API.readFunction - A function used to read the actual subgraph.public PgViewSubgraphReader fromPgView(java.lang.String viewName)
viewName - The name of the view in the database.public PgxFuture<PgxGraph> loadAsync()
AbstractSubgraphReaderloadAsync in class AbstractSubgraphReader<GenericSubgraphReader>