public interface GraphBuilder
GraphSystem.createGraph(String)
where the name of the graph instance is specified.
The builder allows the user to pre-set configuration options.| Modifier and Type | Method and Description |
|---|---|
DseGraph |
build()
Builds the graph instance and sets the configuration options.
|
GraphBuilder |
ifNotExists()
When invoked, the builder checks whether a graph of the given name exists and when it does it
returns that instance rather than attempting to open a new one.
|
GraphBuilder |
set(java.lang.String configOption,
java.lang.Object value)
Sets the provided value for the given configuration option on the graph instance that is created
through this builder.
|
GraphBuilder ifNotExists()
build() any configuration options set through this builder are ignored.
If this method is not invoked and a graph of the same name already exists, an exception is thrown.GraphBuilder set(java.lang.String configOption, java.lang.Object value)
configOption - The name of the optionvalue - The value of the optionDseGraph build()
java.lang.IllegalArgumentException - If a graph of the provided name already exists and ifNotExists()
has not been invoked.