public static final class GraphMLReader.Builder extends Object implements GraphReader.ReaderBuilder<GraphMLReader>
Modifier and Type | Method and Description |
---|---|
GraphMLReader.Builder |
batchSize(long batchSize)
Number of mutations to perform before a commit is executed.
|
GraphMLReader |
create()
Creates the
GraphReader implementation given options provided to the GraphReader.ReaderBuilder
implementation. |
GraphMLReader.Builder |
edgeLabelKey(String edgeLabelKey)
The key to use as the edge label.
|
GraphMLReader.Builder |
strict(boolean strict)
When set to true, exceptions will be thrown if a property value cannot be coerced to the expected data
type.
|
GraphMLReader.Builder |
vertexLabelKey(String vertexLabelKey)
the key to use as the vertex label.
|
GraphMLReader.Builder |
xmlInputFactory(XMLInputFactory inputFactory)
A custom
XMLInputFactory . |
public GraphMLReader.Builder strict(boolean strict)
public GraphMLReader.Builder edgeLabelKey(String edgeLabelKey)
public GraphMLReader.Builder vertexLabelKey(String vertexLabelKey)
public GraphMLReader.Builder batchSize(long batchSize)
public GraphMLReader.Builder xmlInputFactory(XMLInputFactory inputFactory)
XMLInputFactory
. If this value is not set then a default one is constructed. The default
will be configured to disable DTDs and support of external entities to prevent
XXE
style attacks.public GraphMLReader create()
GraphReader.ReaderBuilder
GraphReader
implementation given options provided to the GraphReader.ReaderBuilder
implementation.create
in interface GraphReader.ReaderBuilder<GraphMLReader>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.