public static class GryoReader.Builder extends Object
Modifier and Type | Method and Description |
---|---|
GryoReader.Builder |
batchSize(long batchSize)
Set the size between commits when reading into the
Graph instance. |
GryoReader |
create() |
GryoReader.Builder |
edgeIdKey(String edgeIdKey)
The name of the key to supply to
BatchGraph.Builder.edgeIdKey when reading data into
the Graph . |
GryoReader.Builder |
mapper(GryoMapper gryoMapper)
Supply a mapper
GryoMapper instance to use as the serializer for the KryoWriter . |
GryoReader.Builder |
vertexIdKey(String vertexIdKey)
The name of the key to supply to
BatchGraph.Builder.vertexIdKey when reading data into
the Graph . |
GryoReader.Builder |
workingDirectory(String workingDirectory)
The reader requires a working directory to write temp files to.
|
public GryoReader.Builder batchSize(long batchSize)
Graph
instance. This value defaults to
BatchGraph.DEFAULT_BUFFER_SIZE
.public GryoReader.Builder mapper(GryoMapper gryoMapper)
GryoMapper
instance to use as the serializer for the KryoWriter
.public GryoReader.Builder vertexIdKey(String vertexIdKey)
BatchGraph.Builder.vertexIdKey
when reading data into
the Graph
.public GryoReader.Builder edgeIdKey(String edgeIdKey)
BatchGraph.Builder.edgeIdKey
when reading data into
the Graph
.public GryoReader.Builder workingDirectory(String workingDirectory)
public GryoReader create()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.