Package oracle.pgx.api.frames
Class AbstractPgxEntityProviderFromFramesCreator
- java.lang.Object
-
- oracle.pgx.api.frames.AbstractPgxEntityProviderFromFramesCreator
-
- Direct Known Subclasses:
PgxEdgeProviderFromFramesCreator,PgxVertexProviderFromFramesCreator
public abstract class AbstractPgxEntityProviderFromFramesCreator extends java.lang.ObjectThis class provides the minimum implementation for PgxVertexProviderFromFramesCreator and PgxVertexProviderFromFramesCreator
-
-
Constructor Summary
Constructors Constructor Description AbstractPgxEntityProviderFromFramesCreator(SessionContext sessionContext, oracle.pgx.api.internal.Core core, PgxGraphFromFramesCreator graphFromFramesCreator)Create a new entity provider for either vertices or edges
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgxGraphcreate()Blocking version ofcreateAsync()(String)}.PgxFuture<PgxGraph>createAsync()Create a graph from the parameters and providers providedPgxEdgeProviderFromFramesCreatoredgeProvider(java.lang.String providerName, java.lang.String sourceVertexProvider, java.lang.String destinationVertexProvider, PgxFrame frame)Add a new edge provider to the underlyingPgxGraphFromFramesCreatorPgxGraphFromFramesCreatorpartitioned(boolean isPartitioned)Set whether the graph should be partitioned or not.PgxVertexProviderFromFramesCreatorvertexProvider(java.lang.String providerName, PgxFrame frame)Add a new vertex provider to the underlyingPgxGraphFromFramesCreator
-
-
-
Constructor Detail
-
AbstractPgxEntityProviderFromFramesCreator
public AbstractPgxEntityProviderFromFramesCreator(SessionContext sessionContext, oracle.pgx.api.internal.Core core, PgxGraphFromFramesCreator graphFromFramesCreator)
Create a new entity provider for either vertices or edges- Parameters:
sessionContext- the session context to usecore- the core to usegraphFromFramesCreator- the graph from frames creator used in this entity provider
-
-
Method Detail
-
vertexProvider
public PgxVertexProviderFromFramesCreator vertexProvider(java.lang.String providerName, PgxFrame frame)
Add a new vertex provider to the underlyingPgxGraphFromFramesCreator- Parameters:
providerName- name of the providerframe- frame to use as provider data source- Returns:
- the new 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 underlyingPgxGraphFromFramesCreator- Parameters:
providerName- name of the providersourceVertexProvider- name of the source vertex providerdestinationVertexProvider- name of the destination vertex providerframe- frame to use as provider data source- Returns:
- the new edge provider creator
- Since:
- 21.3
-
partitioned
public PgxGraphFromFramesCreator partitioned(boolean isPartitioned)
Set whether the graph should be partitioned or not.- Parameters:
isPartitioned- whether the graph should be partitioned or not- Returns:
- this object
-
createAsync
public PgxFuture<PgxGraph> createAsync()
Create a graph from the parameters and providers provided- Returns:
- the newly graph created
-
create
public PgxGraph create() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofcreateAsync()(String)}. CallscreateAsync()(String)} and waits for the returnedPgxFutureto complete.- Returns:
- the newly create graph
- Throws:
java.lang.InterruptedException- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
-