T - which graph configuration object this builder will produce
public abstract class AbstractGraphConfigBuilder<T extends AbstractGraphConfigBuilder<T,GC>,GC extends GraphConfig>
extends java.lang.Object
| Constructor and Description |
|---|
AbstractGraphConfigBuilder()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
addEdgeProperty(java.lang.String name, PropertyType type)
Convenience method for
addEdgeProperty(String, PropertyType, Object). |
T |
addEdgeProperty(java.lang.String name, PropertyType type, java.lang.Object defaultVal)
Adds an edge property to this builder
|
T |
addNodeProperty(java.lang.String name, PropertyType type)
Alias for
addVertexProperty(String, PropertyType). |
T |
addNodeProperty(java.lang.String name, PropertyType type, java.lang.Object defaultVal)
|
T |
addVertexProperty(java.lang.String name, PropertyType type)
Convenience method for
addVertexProperty(String, PropertyType, Object). |
T |
addVertexProperty(java.lang.String name, PropertyType type, java.lang.Object defaultVal)
Add a vertex property to this builder
|
GC |
build()
Build the graph configuration object
|
T |
setAutoRefresh(boolean autoRefresh) |
T |
setCreateEdgeIdIndex(boolean create)
Sets the create edge id index flag.
|
T |
setCreateEdgeIdMapping(boolean create)
Sets the create edge id mapping.
|
T |
setCreateVertexIdIndex(boolean create)
Sets the create vertex ID index flag.
|
T |
setCreateVertexIdMapping(boolean create)
Sets the create vertex id mapping flag.
|
T |
setDateFormat(java.lang.String dateFormat)
Sets the date format used for loading and storing the graph.
|
T |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
T |
setErrorHandlingOnMissingVertex(OnMissingVertex action)
Sets the error handling on a missing vertex.
|
T |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
T |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
T |
setFetchIntervalSec(int seconds)
Sets the refresh interval in seconds.
|
T |
setFilter(GraphFilter filter) |
T |
setFilterStrategy(FilterStrategy filterStrategy) |
T |
setLabelValueDelimiter(java.lang.String delimiter)
if
null read the whole String value as label. |
T |
setLoadEdgeLabel(boolean flag)
Sets the edge label loading.
|
T |
setLoadVertexLabels(boolean flag)
Sets the vertex label loading.
|
T |
setPropertyValueDelimiter(java.lang.String delimiter)
(only relevant for
use_vertex_property_value_as_label) if null read the whole property value as label. |
T |
setStrictMode(boolean strictMode)
Sets the strict mode.
|
T |
setUpdateIntervalSec(int seconds) |
T |
setUpdateThreshold(int threshold) |
T |
setUseVertexPropertyValueAsLabel(java.lang.String labelPropertyName)
Load the given property as vertex label.
|
public AbstractGraphConfigBuilder()
public T addEdgeProperty(java.lang.String name, PropertyType type)
addEdgeProperty(String, PropertyType, Object).name - the name of the edge propertytype - the type of the edge propertypublic T addEdgeProperty(java.lang.String name, PropertyType type, java.lang.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 T addNodeProperty(java.lang.String name, PropertyType type)
addVertexProperty(String, PropertyType).name -type -public T addNodeProperty(java.lang.String name, PropertyType type, java.lang.Object defaultVal)
name -type -defaultVal -public T addVertexProperty(java.lang.String name, PropertyType type)
addVertexProperty(String, PropertyType, Object).name - the name of the vertex propertytype - the type of the vertex propertypublic T addVertexProperty(java.lang.String name, PropertyType type, java.lang.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 GC build()
public T setAutoRefresh(boolean autoRefresh)
public T setCreateEdgeIdIndex(boolean create)
create - if true, a edge ID index is createdpublic T setCreateEdgeIdMapping(boolean create)
create - if true, a edge ID mapping is createdpublic T setCreateVertexIdIndex(boolean create)
create - if true, a vertex ID index is createdpublic T setCreateVertexIdMapping(boolean create)
create - if true, a vertex ID mapping is createdpublic T setDateFormat(java.lang.String dateFormat)
dateFormat - the date formatpublic T setErrorHandlingOnMissedPropKey(OnMismatch action)
action - the actionpublic T setErrorHandlingOnMissingVertex(OnMissingVertex action)
action - the actionpublic T setErrorHandlingOnPropConversion(OnMismatch action)
action - the actionpublic T setErrorHandlingOnTypeMismatch(OnMismatch action)
action - the actionpublic T setFetchIntervalSec(int seconds)
seconds - the interval in secondspublic T setFilter(GraphFilter filter)
public T setFilterStrategy(FilterStrategy filterStrategy)
public T setLabelValueDelimiter(java.lang.String delimiter)
null read the whole String value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labelsdelimiter - the delimiter to use. If null read the whole String value as labelpublic T setLoadEdgeLabel(boolean flag)
flag - sets to load the edge label if truepublic T setLoadVertexLabels(boolean flag)
flag - sets to load the vertex label if truepublic T setPropertyValueDelimiter(java.lang.String delimiter)
use_vertex_property_value_as_label) if null read the whole property value as label. Otherwise, split the string using the specified delimiter and use all values as vertex labelsdelimiter - the delimiter to use. If null read the whole property as labelpublic T setStrictMode(boolean strictMode)
strictMode - if true, strict mode is enabled, otherwise strict mode is disabledpublic T setUpdateIntervalSec(int seconds)
public T setUpdateThreshold(int threshold)
public T setUseVertexPropertyValueAsLabel(java.lang.String labelPropertyName)
labelPropertyName - the name of the property to load as labelCopyright © 2017 Oracle Corp. All Rights Reserved.