T - which graph configuration object this builder will producepublic abstract class AbstractGraphConfigBuilder<T extends GraphConfig> extends Object
| Constructor and Description |
|---|
AbstractGraphConfigBuilder()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
AbstractGraphConfigBuilder<T> |
addEdgeProperty(String name, PropertyType type, Object defaultVal)
Adds an edge property to this builder
|
AbstractGraphConfigBuilder<T> |
addNodeProperty(String name, PropertyType type, Object defaultVal)
|
AbstractGraphConfigBuilder<T> |
addVertexProperty(String name, PropertyType type, Object defaultVal)
Add a vertex property to this builder
|
T |
build()
Build the graph configuration object
|
AbstractGraphConfigBuilder<T> |
setCreateEdgeIdIndex(boolean create)
Sets the create edge id index flag.
|
AbstractGraphConfigBuilder<T> |
setCreateEdgeIdMapping(boolean create)
Sets the create edge id mapping.
|
AbstractGraphConfigBuilder<T> |
setCreateVertexIdIndex(boolean create)
Sets the create vertex ID index flag.
|
AbstractGraphConfigBuilder<T> |
setCreateVertexIdMapping(boolean create)
Sets the create vertex id mapping flag.
|
AbstractGraphConfigBuilder<T> |
setDateFormat(String dateFormat)
Sets the date format used for loading and storing the graph.
|
AbstractGraphConfigBuilder<T> |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
AbstractGraphConfigBuilder<T> |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
AbstractGraphConfigBuilder<T> |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
AbstractGraphConfigBuilder<T> |
setRefreshIntervalMs(int milliseconds)
Sets the refresh interval in milliseconds
|
public AbstractGraphConfigBuilder()
public AbstractGraphConfigBuilder<T> addEdgeProperty(String name, PropertyType type, Object defaultVal)
name - the name of the edge propertytype - the type of the edge propertydefaultVal - the default value of the edge property (can be null)public AbstractGraphConfigBuilder<T> addNodeProperty(String name, PropertyType type, Object defaultVal)
name -type -defaultVal -public AbstractGraphConfigBuilder<T> addVertexProperty(String name, PropertyType type, Object defaultVal)
name - the name of the vertex propertytype - the type of the vertex propertydefaultVal - the default value of the vertex property (can be null)public T build()
public AbstractGraphConfigBuilder<T> setCreateEdgeIdIndex(boolean create)
create - if true, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic AbstractGraphConfigBuilder<T> setCreateEdgeIdMapping(boolean create)
create - if true, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic AbstractGraphConfigBuilder<T> setCreateVertexIdIndex(boolean create)
create - if true, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic AbstractGraphConfigBuilder<T> setCreateVertexIdMapping(boolean create)
create - if true, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic AbstractGraphConfigBuilder<T> setDateFormat(String dateFormat)
dateFormat - the date formatgraph configuration documentation for details about the effects and default of this flagpublic AbstractGraphConfigBuilder<T> setErrorHandlingOnMissedPropKey(OnMismatch action)
action - the actiongraph configuration documentation for details about the effects and default of this settingpublic AbstractGraphConfigBuilder<T> setErrorHandlingOnPropConversion(OnMismatch action)
action - the actiongraph configuration documentation for details about the effects and default of this settingpublic AbstractGraphConfigBuilder<T> setErrorHandlingOnTypeMismatch(OnMismatch action)
action - the actiongraph configuration documentation for details about the effects and default of this settingpublic AbstractGraphConfigBuilder<T> setRefreshIntervalMs(int milliseconds)
milliseconds - the interval in millisecondsgraph configuration documentation for details about the effects and default of this flagCopyright © 2015. All rights reserved.