public static final class GraphMLWriter.Builder extends Object implements GraphWriter.WriterBuilder<GraphMLWriter>
Modifier and Type | Method and Description |
---|---|
GraphMLWriter |
create()
Creates the
GraphWriter implementation given options provided to the GraphWriter.WriterBuilder
implementation. |
GraphMLWriter.Builder |
edgeKeyTypes(Map<String,String> edgeKeyTypes)
Map of the data types of the edge keys.
|
GraphMLWriter.Builder |
edgeLabelKey(String edgeLabelKey)
Set the name of the edge label in the GraphML.
|
GraphMLWriter.Builder |
normalize(boolean normalize)
Normalized output is deterministic with respect to the order of elements and properties in the resulting
XML document, and is compatible with line diff-based tools such as Git.
|
GraphMLWriter.Builder |
vertexKeyTypes(Map<String,String> vertexKeyTypes)
Map of the data types of the vertex keys.
|
GraphMLWriter.Builder |
vertexLabelKey(String vertexLabelKey)
Set the name of the vertex label in the GraphML.
|
GraphMLWriter.Builder |
xmlSchemaLocation(String xmlSchemaLocation)
Location of the GraphML schema which is defaulted to
GraphMLTokens.DEFAULT_GRAPHML_SCHEMA_LOCATION . |
public GraphMLWriter.Builder normalize(boolean normalize)
normalize
- whether to normalize the output.public GraphMLWriter.Builder vertexKeyTypes(Map<String,String> vertexKeyTypes)
public GraphMLWriter.Builder edgeKeyTypes(Map<String,String> edgeKeyTypes)
public GraphMLWriter.Builder xmlSchemaLocation(String xmlSchemaLocation)
GraphMLTokens.DEFAULT_GRAPHML_SCHEMA_LOCATION
.public GraphMLWriter.Builder edgeLabelKey(String edgeLabelKey)
GraphMLTokens.LABEL_E
.
The value of Element.label()
is written as a data element on the edge
and the appropriate key element is added to define it in the GraphML. It is important that when reading
this GraphML back in with the reader that this label key is set appropriately to properly read the edge
labels.edgeLabelKey
- if the label of an edge will be handled by the data property.public GraphMLWriter.Builder vertexLabelKey(String vertexLabelKey)
GraphMLTokens.LABEL_V
.
The value of Element.label()
is written as a data element on the
vertex and the appropriate key element is added to define it in the GraphML. It is important that when
reading this GraphML back in with the reader that this label key is set appropriately to properly read the
vertex labels.vertexLabelKey
- if the label of an vertex will be handled by the data property.public GraphMLWriter create()
GraphWriter.WriterBuilder
GraphWriter
implementation given options provided to the GraphWriter.WriterBuilder
implementation.create
in interface GraphWriter.WriterBuilder<GraphMLWriter>
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.