Class GraphMLReader.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.graphml.GraphMLReader.Builder
-
- All Implemented Interfaces:
GraphReader.ReaderBuilder<GraphMLReader>
- Enclosing class:
- GraphMLReader
public static final class GraphMLReader.Builder extends Object implements GraphReader.ReaderBuilder<GraphMLReader>
Allows configuration and construction of the GraphMLReader instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphMLReader.BuilderbatchSize(long batchSize)Number of mutations to perform before a commit is executed.GraphMLReadercreate()Creates theGraphReaderimplementation given options provided to theGraphReader.ReaderBuilderimplementation.GraphMLReader.BuilderedgeLabelKey(String edgeLabelKey)The key to use as the edge label.GraphMLReader.Builderstrict(boolean strict)When set to true, exceptions will be thrown if a property value cannot be coerced to the expected data type.GraphMLReader.BuildervertexLabelKey(String vertexLabelKey)the key to use as the vertex label.GraphMLReader.BuilderxmlInputFactory(XMLInputFactory inputFactory)A customXMLInputFactory.
-
-
-
Method Detail
-
strict
public 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. If set to false, then the reader will continue with the import but ignore the failed property key. By default this value is "true".
-
edgeLabelKey
public GraphMLReader.Builder edgeLabelKey(String edgeLabelKey)
The key to use as the edge label.
-
vertexLabelKey
public GraphMLReader.Builder vertexLabelKey(String vertexLabelKey)
the key to use as the vertex label.
-
batchSize
public GraphMLReader.Builder batchSize(long batchSize)
Number of mutations to perform before a commit is executed.
-
xmlInputFactory
public GraphMLReader.Builder xmlInputFactory(XMLInputFactory inputFactory)
A customXMLInputFactory. 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.
-
create
public GraphMLReader create()
Description copied from interface:GraphReader.ReaderBuilderCreates theGraphReaderimplementation given options provided to theGraphReader.ReaderBuilderimplementation.- Specified by:
createin interfaceGraphReader.ReaderBuilder<GraphMLReader>
-
-