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, buildpublic FileGraphConfigBuilder addEdgeProperty(String name, PropertyType type)
public FileGraphConfigBuilder addEdgeProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilderaddEdgeProperty 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)
AbstractGraphConfigBuilderaddVertexProperty 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)
AbstractGraphConfigBuildersetCreateEdgeIdIndex in class AbstractGraphConfigBuilder<FileGraphConfig>create - if true, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setCreateEdgeIdMapping(boolean create)
AbstractGraphConfigBuildersetCreateEdgeIdMapping in class AbstractGraphConfigBuilder<FileGraphConfig>create - if true, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setCreateVertexIdIndex(boolean create)
AbstractGraphConfigBuildersetCreateVertexIdIndex in class AbstractGraphConfigBuilder<FileGraphConfig>create - if true, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setCreateVertexIdMapping(boolean create)
AbstractGraphConfigBuildersetCreateVertexIdMapping in class AbstractGraphConfigBuilder<FileGraphConfig>create - if true, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setDateFormat(String dateFormat)
AbstractGraphConfigBuildersetDateFormat in class AbstractGraphConfigBuilder<FileGraphConfig>dateFormat - the date formatgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setEdgeExtension(String edgeExtension)
edgeExtension - the edge file extensiongraph configuration documentation for details about the effects and default of this settingpublic FileGraphConfigBuilder setErrorHandlingOnMissedPropKey(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnMissedPropKey in class AbstractGraphConfigBuilder<FileGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic FileGraphConfigBuilder setErrorHandlingOnPropConversion(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnPropConversion in class AbstractGraphConfigBuilder<FileGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic FileGraphConfigBuilder setErrorHandlingOnTypeMismatch(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnTypeMismatch in class AbstractGraphConfigBuilder<FileGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic 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 settingpublic FileGraphConfigBuilder setNodeIdType(IdType nodeIdType)
setVertexIdType(IdType)nodeIdType -public FileGraphConfigBuilder setRefreshIntervalMs(int milliseconds)
AbstractGraphConfigBuildersetRefreshIntervalMs in class AbstractGraphConfigBuilder<FileGraphConfig>milliseconds - the interval in millisecondsgraph configuration documentation for details about the effects and default of this flagpublic FileGraphConfigBuilder setSeparator(String separator)
separator - the separatorgraph configuration documentation for details about the effects and default of this settingpublic 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 settingCopyright © 2015. All rights reserved.