@Override public Traversal<Object,Object> get_g_io_writeXkryoX(final String fileToWrite) throws IOException { return g.io(fileToWrite).write(); }
@Override public Traversal<Object,Object> get_g_io_readXjsonX(final String fileToRead) throws IOException { return g.io(fileToRead).read(); }
@Override public Traversal<Object,Object> get_g_io_readXkryoX(final String fileToRead) throws IOException { return g.io(fileToRead).read(); }
@Override public Traversal<Object,Object> get_g_io_writeXjsonX(final String fileToWrite) throws IOException { return g.io(fileToWrite).write(); }
@Override public Traversal<Object,Object> get_g_io_writeXxmlX(final String fileToWrite) throws IOException { return g.io(fileToWrite).write(); }
@Override public Traversal<Object,Object> get_g_io_readXxmlX(final String fileToRead) throws IOException { return g.io(fileToRead).read(); }
@Override public Traversal<Object,Object> get_g_io_read_withXreader_graphmlX(final String fileToRead) throws IOException { return g.io(fileToRead).with(IO.reader, IO.graphml).read(); } }
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_graphmlX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.graphml).write(); } }
@Override public Traversal<Object,Object> get_g_io_read_withXreader_graphsonX(final String fileToRead) throws IOException { return g.io(fileToRead).with(IO.reader, IO.graphson).read(); } @Override
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_gryoX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.gryo).write(); }
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_graphsonX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.graphson).write(); } @Override
@Override public Traversal<Object,Object> get_g_io_read_withXreader_gryoX(final String fileToRead) throws IOException { return g.io(fileToRead).with(IO.reader, IO.gryo).read(); }
/** * Used by the default implementation of {@link AbstractGraphProvider#loadGraphData(Graph, LoadGraphWith, Class, String)} * to read the graph from a Kryo file using the default {@link GryoReader} implementation. If the default * implementation does not work (perhaps a graph implementation needs to register some special {@link IoRegistry} * then this method or its caller should be overridden to suit the implementation. * * @param graph the graph to load to * @param path the path to the file to load into the graph */ protected void readIntoGraph(final Graph graph, final String path) throws IOException { final String dataFile = TestHelper.generateTempFileFromResource(graph.getClass(), GryoResourceAccess.class, path.substring(path.lastIndexOf(File.separator) + 1), "", false).getAbsolutePath(); graph.traversal().io(dataFile).read().iterate(); } }
@Override public Traversal<Object,Object> get_g_io_writeXjsonX(final String fileToWrite) throws IOException { return g.io(fileToWrite).write(); }
@Override public Traversal<Object,Object> get_g_io_readXjsonX(final String fileToRead) throws IOException { return g.io(fileToRead).read(); }
@Override public Traversal<Object,Object> get_g_io_writeXxmlX(final String fileToWrite) throws IOException { return g.io(fileToWrite).write(); }
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_graphmlX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.graphml).write(); } }
@Override public Traversal<Object,Object> get_g_io_read_withXreader_graphsonX(final String fileToRead) throws IOException { return g.io(fileToRead).with(IO.reader, IO.graphson).read(); } @Override
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_gryoX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.gryo).write(); }
@Override public Traversal<Object,Object> get_g_io_write_withXwriter_graphsonX(final String fileToWrite) throws IOException { return g.io(fileToWrite).with(IO.writer, IO.graphson).write(); } @Override