public class FileGraphConfigBuilder extends AbstractGraphConfigBuilder<FileGraphConfig>
Constructor and Description |
---|
FileGraphConfigBuilder() |
Modifier and Type | Method and Description |
---|---|
FileGraphConfigBuilder |
addEdgeProperty(String name, PropertyType type) |
FileGraphConfigBuilder |
addEdgeProperty(String name, PropertyType type, Object defaultVal)
Adds an edge property to this builder
|
FileGraphConfigBuilder |
addNodeProperty(String name, PropertyType type) |
FileGraphConfigBuilder |
addVertexProperty(String name, PropertyType type, Object defaultVal)
Add a vertex property to this builder
|
static FileGraphConfigBuilder |
forFormat(Format format)
Creates a new file graph configuration builder for a given file format.
|
FileGraphConfigBuilder |
setCreateEdgeIdIndex(boolean create)
Sets the create edge id index flag.
|
FileGraphConfigBuilder |
setCreateEdgeIdMapping(boolean create)
Sets the create edge id mapping.
|
FileGraphConfigBuilder |
setCreateVertexIdIndex(boolean create)
Sets the create vertex ID index flag.
|
FileGraphConfigBuilder |
setCreateVertexIdMapping(boolean create)
Sets the create vertex id mapping flag.
|
FileGraphConfigBuilder |
setDateFormat(String dateFormat)
Sets the date format used for loading and storing the graph.
|
FileGraphConfigBuilder |
setEdgeExtension(String edgeExtension)
Sets the edge file extension.
|
FileGraphConfigBuilder |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
FileGraphConfigBuilder |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
FileGraphConfigBuilder |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
FileGraphConfigBuilder |
setFormat(Format format)
Sets the file format.
|
FileGraphConfigBuilder |
setNodeExtension(String nodeExtension)
Sets the node file extension.
|
FileGraphConfigBuilder |
setNodeIdType(IdType nodeIdType)
Alias for
setVertexIdType(IdType) |
FileGraphConfigBuilder |
setRefreshIntervalMs(int milliseconds)
Sets the refresh interval in milliseconds
|
FileGraphConfigBuilder |
setSeparator(String separator)
Sets the separator.
|
FileGraphConfigBuilder |
setUri(String uri)
Sets the unified resource identifier (URI) string pointing to a file with graph data.
|
FileGraphConfigBuilder |
setVertexIdType(IdType vertexIdType)
Sets the vertex id type.
|
addNodeProperty, build
public FileGraphConfigBuilder addEdgeProperty(String name, PropertyType type)
public FileGraphConfigBuilder addEdgeProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addEdgeProperty
in class AbstractGraphConfigBuilder<FileGraphConfig>
name
- the name of the edge propertytype
- the type of the edge propertydefaultVal
- the default value of the edge property (can be null
)public FileGraphConfigBuilder addNodeProperty(String name, PropertyType type)
public FileGraphConfigBuilder addVertexProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addVertexProperty
in class AbstractGraphConfigBuilder<FileGraphConfig>
name
- the name of the vertex propertytype
- the type of the vertex propertydefaultVal
- the default value of the vertex property (can be null
)public static FileGraphConfigBuilder forFormat(Format format)
format
- the file format.public FileGraphConfigBuilder setCreateEdgeIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdIndex
in class AbstractGraphConfigBuilder<FileGraphConfig>
create
- if true
, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setCreateEdgeIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdMapping
in class AbstractGraphConfigBuilder<FileGraphConfig>
create
- if true
, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setCreateVertexIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdIndex
in class AbstractGraphConfigBuilder<FileGraphConfig>
create
- if true
, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setCreateVertexIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdMapping
in class AbstractGraphConfigBuilder<FileGraphConfig>
create
- if true
, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setDateFormat(String dateFormat)
AbstractGraphConfigBuilder
setDateFormat
in class AbstractGraphConfigBuilder<FileGraphConfig>
dateFormat
- the date formatgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setEdgeExtension(String edgeExtension)
edgeExtension
- the edge file extensiongraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setErrorHandlingOnMissedPropKey(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnMissedPropKey
in class AbstractGraphConfigBuilder<FileGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setErrorHandlingOnPropConversion(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnPropConversion
in class AbstractGraphConfigBuilder<FileGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setErrorHandlingOnTypeMismatch(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnTypeMismatch
in class AbstractGraphConfigBuilder<FileGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setFormat(Format format)
format
- the formatpublic FileGraphConfigBuilder setNodeExtension(String nodeExtension)
nodeExtension
- the node file extensiongraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setNodeIdType(IdType nodeIdType)
setVertexIdType(IdType)
nodeIdType
-public FileGraphConfigBuilder setRefreshIntervalMs(int milliseconds)
AbstractGraphConfigBuilder
setRefreshIntervalMs
in class AbstractGraphConfigBuilder<FileGraphConfig>
milliseconds
- the interval in millisecondsgraph configuration documentation for details about the effects and default of this flag
public FileGraphConfigBuilder setSeparator(String separator)
separator
- the separatorgraph configuration documentation for details about the effects and default of this setting
public FileGraphConfigBuilder setUri(String uri)
uri
- the uripublic FileGraphConfigBuilder setVertexIdType(IdType vertexIdType)
vertexIdType
- the vertex id typegraph configuration documentation for details about the effects and default of this setting
Copyright © 2015. All rights reserved.