public final class GraphMigrator extends Object
GraphMigratortakes the data in one graph and pipes it to another graph. Uses the
GryoWriterby default. Note that this utility is meant as a convenience for "small" graph migrations.
|Modifier and Type||Method and Description|
Use Gryo to pipe the data from one graph to another graph.
Pipe the data from one graph to another graph.
public static void migrateGraph(Graph fromGraph, Graph toGraph) throws IOException
public static void migrateGraph(Graph fromGraph, Graph toGraph, GraphReader reader, GraphWriter writer) throws IOException
fromGraph- the graph to take data from.
toGraph- the graph to take data to.
reader- reads from the graph written by the writer.
writer- writes the graph to be read by the reader.
IOException- thrown if there is an error in steam between the two graphs.
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.