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
|
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 addjava.io.IOExceptionGraphAlterationBuilder addEdgeProvider(java.lang.String pathToEdgeProviderConfig) throws java.io.IOException
pathToEdgeProviderConfig - the path to the JSON configuration of the edge providerjava.io.IOExceptionGraphAlterationBuilder addVertexProvider(EntityProviderConfig vertexProviderConfig)
vertexProviderConfig - the configuration of the vertex provider to addjava.io.IOExceptionGraphAlterationBuilder addVertexProvider(java.lang.String pathToVertexProviderConfig) throws java.io.IOException
pathToVertexProviderConfig - the path to the JSON configuration of the vertex providerjava.io.IOExceptiondefault PgxGraph build() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildAsync())java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptiondefault PgxGraph build(java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildAsync(String))newGraphName - name of the new graph to createjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptiondefault PgxFuture<PgxGraph> buildAsync()
java.io.IOExceptionPgxFuture<PgxGraph> buildAsync(java.lang.String newGraphName)
newGraphName - name of the new graph to createjava.io.IOExceptiondefault PgxGraph buildNewSnapshot() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildNewSnapshotAsync())java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionPgxFuture<PgxGraph> buildNewSnapshotAsync()
java.io.IOExceptionGraphAlterationBuilder 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 removejava.io.IOExceptionGraphAlterationBuilder removeVertexProvider(java.lang.String vertexProviderName)
cascadeEdgeProviderRemovals(boolean).vertexProviderName - the name of the provider to removejava.io.IOExceptionvoid setDataSourceVersion(java.lang.String version)
version - the version information