Package oracle.pgx.api.subgraph
Class AbstractSubgraphReader<R extends AbstractSubgraphReader<R>>
java.lang.Object
oracle.pgx.api.subgraph.AbstractSubgraphReader<R>
- Type Parameters:
R- The reader type.
- Direct Known Subclasses:
GenericSubgraphReader,PgqlBasedSubgraphReader
@BetaApi
public abstract class AbstractSubgraphReader<R extends AbstractSubgraphReader<R>>
extends Object
Base class for all subgraph readers.
-
Method Summary
-
Method Details
-
loadAsync
Load the subgraph.- Parameters:
graphName- the name of the graph- Returns:
- The subgraph.
-
loadAsync
Load the subgraph.- Returns:
- The subgraph.
-
load
Blocking version ofloadAsync(String). Starts the reading operation and awaits its completion.- Parameters:
graphName- the graph name- Returns:
- The loaded subgraph.
- Throws:
InterruptedException- When the asynchronous operation is interrupted.ExecutionException- When the operation failed.
-
load
Blocking version ofloadAsync(). Starts the reading operation and awaits its completion.- Returns:
- The loaded subgraph.
- Throws:
InterruptedException- When the asynchronous operation is interrupted.ExecutionException- When the operation failed.
-