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.subgraph.internal.KeystoreLookup keystoreLookup, 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(java.lang.String graphName)
Load the subgraph.
|
load, load, loadAsyncpublic GenericSubgraphReader(PgxSession session, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup, java.util.function.Function<GraphConfig,PgxFuture<PgxGraph>> readFunction)
PgxSession.readSubgraph() to acquire an instance instead.session - The session for the read operation.keystoreLookup - A helper of looking up keystore entries.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(java.lang.String graphName)
AbstractSubgraphReaderloadAsync in class AbstractSubgraphReader<GenericSubgraphReader>graphName - the name of the graph