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
public abstract class AbstractSubgraphReader<R extends AbstractSubgraphReader<R>> extends java.lang.Object
Base class for all subgraph readers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PgxGraph
load()
Blocking version ofloadAsync()
.PgxGraph
load(java.lang.String graphName)
Blocking version ofloadAsync(String)
.PgxFuture<PgxGraph>
loadAsync()
Load the subgraph.abstract PgxFuture<PgxGraph>
loadAsync(java.lang.String graphName)
Load the subgraph.
-
-
-
Method Detail
-
loadAsync
public abstract PgxFuture<PgxGraph> loadAsync(java.lang.String graphName)
Load the subgraph.- Parameters:
graphName
- the name of the graph- Returns:
- The subgraph.
-
load
public PgxGraph load(java.lang.String graphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofloadAsync(String)
. Starts the reading operation and awaits its completion.- Parameters:
graphName
- the graph name- Returns:
- The loaded subgraph.
- Throws:
java.lang.InterruptedException
- When the asynchronous operation is interrupted.java.util.concurrent.ExecutionException
- When the operation failed.
-
load
public PgxGraph load() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofloadAsync()
. Starts the reading operation and awaits its completion.- Returns:
- The loaded subgraph.
- Throws:
java.lang.InterruptedException
- When the asynchronous operation is interrupted.java.util.concurrent.ExecutionException
- When the operation failed.
-
-