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.
|
GraphAlterationBuilder addEdgeProvider(EntityProviderConfig edgeProviderConfig)
edgeProviderConfig
- the configuration of the edge provider to addjava.io.IOException
GraphAlterationBuilder addEdgeProvider(java.lang.String pathToEdgeProviderConfig) throws java.io.IOException
pathToEdgeProviderConfig
- the path to the JSON configuration of the edge providerjava.io.IOException
GraphAlterationBuilder addVertexProvider(EntityProviderConfig vertexProviderConfig)
vertexProviderConfig
- the configuration of the vertex provider to addjava.io.IOException
GraphAlterationBuilder 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.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
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.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
default PgxFuture<PgxGraph> buildAsync()
java.io.IOException
PgxFuture<PgxGraph> buildAsync(java.lang.String newGraphName)
newGraphName
- name of the new graph to createjava.io.IOException
default PgxGraph buildNewSnapshot() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
buildNewSnapshotAsync()
)java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
PgxFuture<PgxGraph> buildNewSnapshotAsync()
java.io.IOException
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 removejava.io.IOException
GraphAlterationBuilder removeVertexProvider(java.lang.String vertexProviderName)
cascadeEdgeProviderRemovals(boolean)
.vertexProviderName
- the name of the provider to removejava.io.IOException
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.