public interface GraphAlterationBuilder
Modifier and Type | Method and Description |
---|---|
GraphAlterationBuilder |
addEdgeProvider(EntityProviderConfig edgeProviderConfig)
Adds an edge provider specified by the provided configuration
|
GraphAlterationBuilder |
addEdgeProvider(java.lang.String pathToEdgeProviderConfig)
Adds an edge provider for which the configuration is in a file at the specified path
|
GraphAlterationEmptyEdgeProviderBuilder |
addEmptyEdgeProvider(java.lang.String providerName, java.lang.String sourceProvider, java.lang.String destProvider)
Adds an empty edge provider
|
GraphAlterationEmptyVertexProviderBuilder |
addEmptyVertexProvider(java.lang.String providerName)
Adds an empty vertex provider
|
GraphAlterationBuilder |
addVertexProvider(EntityProviderConfig vertexProviderConfig)
Adds a vertex provider specified by the provided configuration
|
GraphAlterationBuilder |
addVertexProvider(java.lang.String pathToVertexProviderConfig)
Adds a vertex provider for which the configuration is in a file at the specified path
|
default PgxGraph |
build()
Create a new graph that is the result of the alteration of the current graph.
|
default PgxGraph |
build(java.lang.String newGraphName)
Create a new graph that is the result of the alteration of the current graph.
|
default PgxFuture<PgxGraph> |
buildAsync()
Create a new graph that is the result of the alteration of the current graph.
|
PgxFuture<PgxGraph> |
buildAsync(java.lang.String newGraphName)
Create a new graph that is the result of the alteration of the current graph.
|
default PgxGraph |
buildNewSnapshot()
Create a new snapshot for the current graph that is the result of the alteration of the current snapshot.
|
PgxFuture<PgxGraph> |
buildNewSnapshotAsync()
Create a new snapshot for the current graph that is the result of the alteration of the current snapshot.
|
GraphAlterationBuilder |
cascadeEdgeProviderRemovals(boolean cascadeEdgeProviderRemovals)
Specifies if the edge providers associated to a vertex provider (the vertex provider is either the source or destination provider for that edge provider) being removed should be automatically removed too or not.
|
GraphAlterationBuilder |
removeEdgeProvider(java.lang.String edgeProviderName)
Removes the edge provider that has the given name
|
GraphAlterationBuilder |
removeVertexProvider(java.lang.String vertexProviderName)
Removes the vertex provider that has the given name.
|
void |
setDataSourceVersion(java.lang.String version)
Sets the version information for the built graph or snapshot
|
GraphAlterationBuilder addEdgeProvider(EntityProviderConfig edgeProviderConfig)
edgeProviderConfig
- the configuration of the edge provider to addGraphAlterationBuilder addEdgeProvider(java.lang.String pathToEdgeProviderConfig) throws java.io.IOException
pathToEdgeProviderConfig
- the path to the JSON configuration of the edge providerjava.io.IOException
GraphAlterationEmptyEdgeProviderBuilder addEmptyEdgeProvider(java.lang.String providerName, java.lang.String sourceProvider, java.lang.String destProvider)
providerName
- the name of the edge provider to addsourceProvider
- the name of the vertex provider for the source of the edgesdestProvider
- the name of the vertex provider for the destination of the edgesGraphAlterationEmptyVertexProviderBuilder addEmptyVertexProvider(java.lang.String providerName)
providerName
- the name of the vertex provider to addGraphAlterationBuilder addVertexProvider(EntityProviderConfig vertexProviderConfig)
vertexProviderConfig
- the configuration of the vertex provider to addGraphAlterationBuilder addVertexProvider(java.lang.String pathToVertexProviderConfig) throws java.io.IOException
pathToVertexProviderConfig
- the path to the JSON configuration of the vertex providerjava.io.IOException
default PgxGraph build() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildAsync()
)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.default PgxGraph build(java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildAsync(String)
)newGraphName
- name of the new graph to createjava.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.default PgxFuture<PgxGraph> buildAsync()
PgxFuture<PgxGraph> buildAsync(java.lang.String newGraphName)
newGraphName
- name of the new graph to createdefault PgxGraph buildNewSnapshot() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildNewSnapshotAsync()
)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.PgxFuture<PgxGraph> buildNewSnapshotAsync()
GraphAlterationBuilder cascadeEdgeProviderRemovals(boolean cascadeEdgeProviderRemovals)
cascadeEdgeProviderRemovals
- whether or not to automatically remove associated edge providers of removed vertex providersGraphAlterationBuilder removeEdgeProvider(java.lang.String edgeProviderName)
edgeProviderName
- the name of the provider to removeGraphAlterationBuilder removeVertexProvider(java.lang.String vertexProviderName)
cascadeEdgeProviderRemovals(boolean)
.vertexProviderName
- the name of the provider to removevoid setDataSourceVersion(java.lang.String version)
version
- the version information