public static final class GraphSONReader.Builder extends Object implements GraphReader.ReaderBuilder<GraphSONReader>
|Modifier and Type||Method and Description|
Number of mutations to perform before a commit is executed when using
Override all of the
If the adjacency list is wrapped in a JSON object, as is done when writing a graph with
public GraphSONReader.Builder batchSize(long batchSize)
public GraphSONReader.Builder mapper(Mapper<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper> mapper)
GraphSONMapperbuilder options with this mapper. If this value is set to something other than null then that value will be used to construct the writer.
public GraphSONReader.Builder unwrapAdjacencyList(boolean unwrapAdjacencyList)
GraphSONWriter.Builder.wrapAdjacencyList(boolean)wrapAdjacencyList} set to
true, this setting needs to be set to
trueto properly read it. By default, this value is
falseand the adjacency list is simply read as line delimited vertices. By setting this value to
true, the generated JSON is no longer "splittable" by line and thus not suitable for OLAP processing. Furthermore, reading this format of the JSON with
GraphSONReader.readVertices(InputStream, Function, Function, Direction)requires that the entire JSON object be read into memory, so it is best saved for "small" graphs.
public GraphSONReader create()
GraphReaderimplementation given options provided to the
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.