public class IncrementalBulkLoader extends Object implements BulkLoader
Constructor and Description |
---|
IncrementalBulkLoader() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration)
Configures the BulkLoader instance.
|
Edge |
getOrCreateEdge(Edge edge,
Vertex outVertex,
Vertex inVertex,
Graph graph,
GraphTraversalSource g)
Gets or creates a clone of the given edge between the given in- and out-vertices.
|
Vertex |
getOrCreateVertex(Vertex vertex,
Graph graph,
GraphTraversalSource g)
Gets or creates a clone of the given vertex in the given graph.
|
VertexProperty |
getOrCreateVertexProperty(VertexProperty<?> property,
Vertex vertex,
Graph graph,
GraphTraversalSource g)
Gets or creates a clone of the given property for the given vertex.
|
Vertex |
getVertex(Vertex vertex,
Graph graph,
GraphTraversalSource g)
Get a vertex that matches the given vertex from the given graph.
|
String |
getVertexIdProperty() |
boolean |
keepOriginalIds() |
boolean |
useUserSuppliedIds() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEdge, createVertexProperty, getVertexById
public Vertex getOrCreateVertex(Vertex vertex, Graph graph, GraphTraversalSource g)
getOrCreateVertex
in interface BulkLoader
vertex
- The vertex to be cloned.graph
- The graph that holds the cloned vertex after this method was called.g
- A standard traversal source for the given graph.public Edge getOrCreateEdge(Edge edge, Vertex outVertex, Vertex inVertex, Graph graph, GraphTraversalSource g)
getOrCreateEdge
in interface BulkLoader
edge
- The edge to be cloned.outVertex
- The out-vertex in the given graph..inVertex
- The in-vertex in the given graph.graph
- The graph that holds the cloned edge after this method was called.g
- A standard traversal source for the given graph.public VertexProperty getOrCreateVertexProperty(VertexProperty<?> property, Vertex vertex, Graph graph, GraphTraversalSource g)
getOrCreateVertexProperty
in interface BulkLoader
property
- The property to be cloned.vertex
- The vertex in the given graph..graph
- The graph that holds the given vertex.g
- A standard traversal source for the given graph.public Vertex getVertex(Vertex vertex, Graph graph, GraphTraversalSource g)
getVertex
in interface BulkLoader
vertex
- The vertex to be matched.graph
- The graph that holds the given vertex.g
- A standard traversal source for the given graph.public boolean useUserSuppliedIds()
useUserSuppliedIds
in interface BulkLoader
public boolean keepOriginalIds()
keepOriginalIds
in interface BulkLoader
public String getVertexIdProperty()
getVertexIdProperty
in interface BulkLoader
public void configure(Configuration configuration)
configure
in interface BulkLoader
configuration
- The BulkLoader configuration.Copyright © 2013–2016 Apache Software Foundation. All rights reserved.