@Deprecated public class OneTimeBulkLoader extends Object implements BulkLoader
OneTimeBulkLoader
is a
BulkLoader
implementation that should be used
for initial bulk loads. In contrast to IncrementalBulkLoader
it doesn't store temporary identifiers in the write graph nor does it attempt to find existing elements, instead it
only clones each element from the source graph.Constructor and Description |
---|
OneTimeBulkLoader()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration)
Deprecated.
Configures the BulkLoader instance.
|
Edge |
getOrCreateEdge(Edge edge,
Vertex outVertex,
Vertex inVertex,
Graph graph,
GraphTraversalSource g)
Deprecated.
Creates a clone of the given edge between the given in- and out-vertices.
|
Vertex |
getOrCreateVertex(Vertex vertex,
Graph graph,
GraphTraversalSource g)
Deprecated.
Creates a clone of the given vertex in the given graph.
|
VertexProperty |
getOrCreateVertexProperty(VertexProperty<?> property,
Vertex vertex,
Graph graph,
GraphTraversalSource g)
Deprecated.
Creates a clone of the given property for the given vertex.
|
Vertex |
getVertex(Vertex vertex,
Graph graph,
GraphTraversalSource g)
Deprecated.
Get a vertex that matches the given vertex from the given graph.
|
String |
getVertexIdProperty()
Deprecated.
Always returns null.
|
boolean |
keepOriginalIds()
Deprecated.
Always returns false.
|
boolean |
useUserSuppliedIds()
Deprecated.
|
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–2018 Apache Software Foundation. All rights reserved.