Class PgxGraphFromFramesCreator


  • public class PgxGraphFromFramesCreator
    extends java.lang.Object
    • Constructor Detail

      • PgxGraphFromFramesCreator

        public PgxGraphFromFramesCreator​(SessionContext sessionContext,
                                         oracle.pgx.api.internal.Core core,
                                         java.lang.String graphName,
                                         java.util.function.Function<oracle.pgx.api.internal.Graph,​PgxGraph> graphConstructor)
    • Method Detail

      • vertexProvider

        public PgxVertexProviderFromFramesCreator vertexProvider​(java.lang.String providerName,
                                                                 PgxFrame frame)
        Add a new vertex provider to the graph creator
        Parameters:
        providerName - the name of the provider
        frame - the frame to use
        Returns:
        the vertex provider creator
        Since:
        21.3
      • edgeProvider

        public PgxEdgeProviderFromFramesCreator edgeProvider​(java.lang.String providerName,
                                                             java.lang.String sourceVertexProvider,
                                                             java.lang.String destinationVertexProvider,
                                                             PgxFrame frame)
        Add a new edge provider to the graph creator
        Parameters:
        providerName - the name of the provider
        sourceVertexProvider - the name of the source provider to use
        destinationVertexProvider - the name of the destination provider to use
        frame - the frame to use
        Returns:
        the edge provider creator
        Since:
        21.3
      • vertexIdStrategy

        public void vertexIdStrategy​(IdStrategy strategy)
        Set strategy for vertex ids
        Parameters:
        strategy - the vertex id strategy
        Since:
        24.1
      • edgeIdStrategy

        public void edgeIdStrategy​(IdStrategy strategy)
        Set strategy for edge ids
        Parameters:
        strategy - the edge id strategy
        Since:
        24.1
      • create

        public PgxGraph create()
                        throws java.lang.InterruptedException,
                               java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException