public abstract class AbstractPgxEntityProviderFromFramesCreator
extends java.lang.Object
Constructor and Description |
---|
AbstractPgxEntityProviderFromFramesCreator(SessionContext sessionContext, oracle.pgx.api.internal.Core core, PgxGraphFromFramesCreator graphFromFramesCreator)
Create a new entity provider for either vertices or edges
|
Modifier and Type | Method and Description |
---|---|
PgxGraph |
create()
Blocking version of
createAsync() (String)}. |
PgxFuture<PgxGraph> |
createAsync()
Create a graph from the parameters and providers provided
|
PgxEdgeProviderFromFramesCreator |
edgeProvider(java.lang.String providerName, java.lang.String sourceVertexProvider, java.lang.String destinationVertexProvider, PgxFrame frame)
Add a new edge provider to the underlying
PgxGraphFromFramesCreator |
PgxGraphFromFramesCreator |
partitioned(boolean isPartitioned)
Set whether the graph should be partitioned or not.
|
PgxVertexProviderFromFramesCreator |
vertexProvider(java.lang.String providerName, PgxFrame frame)
Add a new vertex provider to the underlying
PgxGraphFromFramesCreator |
public AbstractPgxEntityProviderFromFramesCreator(SessionContext sessionContext, oracle.pgx.api.internal.Core core, PgxGraphFromFramesCreator graphFromFramesCreator)
sessionContext
- the session context to usecore
- the core to usegraphFromFramesCreator
- the graph from frames creator used in this entity providerpublic PgxGraph create() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
createAsync()
(String)}. Calls createAsync()
(String)} and waits for the returned PgxFuture
to complete.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.public PgxFuture<PgxGraph> createAsync()
public PgxEdgeProviderFromFramesCreator edgeProvider(java.lang.String providerName, java.lang.String sourceVertexProvider, java.lang.String destinationVertexProvider, PgxFrame frame)
PgxGraphFromFramesCreator
providerName
- name of the providersourceVertexProvider
- name of the source vertex providerdestinationVertexProvider
- name of the destination vertex providerframe
- frame to use as provider data sourcepublic PgxGraphFromFramesCreator partitioned(boolean isPartitioned)
isPartitioned
- whether the graph should be partitioned or notpublic PgxVertexProviderFromFramesCreator vertexProvider(java.lang.String providerName, PgxFrame frame)
PgxGraphFromFramesCreator
providerName
- name of the providerframe
- frame to use as provider data source