public static class BatchGraph.Builder<G extends Graph> extends Object
Modifier and Type | Method and Description |
---|---|
BatchGraph.Builder |
bufferSize(long bufferSize)
Number of mutations to perform between calls to
Transaction.commit() . |
BatchGraph<G> |
create() |
BatchGraph.Builder |
edgeIdKey(String key)
Sets the key to be used when setting the edge id as a property on the respective edge.
|
BatchGraph.Builder |
incrementalLoading(boolean incrementalLoading)
Sets whether the graph loaded through this instance of
BatchGraph is loaded from scratch
(i.e. |
BatchGraph.Builder |
incrementalLoading(boolean incrementalLoading,
BiConsumer<Element,Object[]> existingVertexStrategy,
BiConsumer<Element,Object[]> existingEdgeStrategy)
Sets whether the graph loaded through this instance of
BatchGraph is loaded from scratch
(i.e. |
BatchGraph.Builder |
vertexIdKey(String key)
Sets the key to be used when setting the vertex id as a property on the respective vertex.
|
BatchGraph.Builder |
vertexIdType(VertexIdType type)
Sets the type of the id used for the vertex which in turn determines the cache type that is used.
|
public BatchGraph.Builder vertexIdKey(String key)
T.id
.key
- Key to be used.public BatchGraph.Builder edgeIdKey(String key)
key
- Key to be used.public BatchGraph.Builder bufferSize(long bufferSize)
Transaction.commit()
.public BatchGraph.Builder vertexIdType(VertexIdType type)
public BatchGraph.Builder incrementalLoading(boolean incrementalLoading)
BatchGraph
is loaded from scratch
(i.e. the wrapped graph is initially empty) or whether graph is loaded incrementally into an
existing graph.
In the former case, BatchGraph does not need to check for the existence of vertices with the wrapped
graph but only needs to consult its own cache which can be significantly faster. In the latter case,
the cache is checked first but an additional check against the wrapped graph may be necessary if
the vertex does not exist.
By default, BatchGraph assumes that the data is loaded from scratch.public BatchGraph.Builder incrementalLoading(boolean incrementalLoading, BiConsumer<Element,Object[]> existingVertexStrategy, BiConsumer<Element,Object[]> existingEdgeStrategy)
BatchGraph
is loaded from scratch
(i.e. the wrapped graph is initially empty) or whether graph is loaded incrementally into an
existing graph.
In the former case, BatchGraph does not need to check for the existence of vertices with the wrapped
graph but only needs to consult its own cache which can be significantly faster. In the latter case,
the cache is checked first but an additional check against the wrapped graph may be necessary if
the vertex does not exist.
By default, BatchGraph assumes that the data is loaded from scratch.public BatchGraph<G> create()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.