Class AbstractSubgraphReader<R extends 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 Detail

      • loadAsync

        public abstract PgxFuture<PgxGraph> loadAsync​(java.lang.String graphName)
        Load the subgraph.
        Parameters:
        graphName - the name of the graph
        Returns:
        The subgraph.
      • loadAsync

        public PgxFuture<PgxGraph> loadAsync()
        Load the subgraph.
        Returns:
        The subgraph.
      • load

        public PgxGraph load​(java.lang.String graphName)
                      throws java.util.concurrent.ExecutionException,
                             java.lang.InterruptedException
        Blocking version of loadAsync(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 of loadAsync(). 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.