public final class GraphMigrator
extends java.lang.Object
GraphMigrator takes the data in one graph and pipes it to another graph. Uses the KryoReader
and KryoWriter by default.| Constructor and Description |
|---|
GraphMigrator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
migrateGraph(Graph fromGraph,
Graph toGraph)
Use Kryo to pipe the data from one graph to another graph.
|
static void |
migrateGraph(Graph fromGraph,
Graph toGraph,
GraphReader reader,
GraphWriter writer)
Pipe the data from one graph to another graph.
|
public static void migrateGraph(Graph fromGraph, Graph toGraph) throws java.io.IOException
KryoReader and KryoWriter for those settings. To use features like incremental
loading, construct the reader/writers manually and utilize
migrateGraph(com.tinkerpop.gremlin.structure.Graph, com.tinkerpop.gremlin.structure.Graph, GraphReader, GraphWriter)java.io.IOExceptionpublic static void migrateGraph(Graph fromGraph, Graph toGraph, GraphReader reader, GraphWriter writer) throws java.io.IOException
fromGraph - the graph to take data fromtoGraph - the graph to take data toreader - reads from the graph written by the writerwriter - writes the graph to be read by the readerjava.io.IOException - thrown if there is an error in steam between the two graphsCopyright © 2013-2015 TinkerPop. All Rights Reserved.