@Test public void testWriteWithExistingMetaData() throws Exception { String tmpPath = temporaryFolder.getRoot().getPath(); String csvPath = getFilePath("/data/csv/input_graph_collection"); String gdlPath = getFilePath("/data/csv/expected/expected_graph_collection.gdl"); LogicalGraph input = getLoaderFromFile(gdlPath).getLogicalGraphByVariable("expected"); DataSink csvDataSink = new CSVDataSink(tmpPath, csvPath + "/metadata.csv", getConfig()); csvDataSink.write(input, true); getExecutionEnvironment().execute(); DataSource csvDataSource = new CSVDataSource(tmpPath, getConfig()); LogicalGraph output = csvDataSource.getLogicalGraph(); collectAndAssertTrue(input.equalsByElementData(output)); }
@Override public void write(LogicalGraph logicalGraph) throws IOException { write(logicalGraph, false); }
CSVDataSink extends CSVBase implements DataSink { @Override public void write(LogicalGraph logicalGraph) throws IOException { write(logicalGraph, false); } }
CSVDataSink extends CSVBase implements DataSink { @Override public void write(LogicalGraph logicalGraph) throws IOException { write(logicalGraph, false); } CSVDataSink(String csvPath, GradoopFlinkConfig config);  CSVDataSink(String csvPath, String metaDataPath, GradoopFlinkConfig config); }
CSVDataSink extends CSVBase implements DataSink { @Override public void write(LogicalGraph logicalGraph) throws IOException { write(logicalGraph, false); } CSVDataSink(String csvPath, GradoopFlinkConfig config);  CSVDataSink(String csvPath, String metaDataPath, GradoopFlinkConfig config); @Override void write(LogicalGraph logicalGraph); @Override void write(GraphCollection graphCollection); @Override void write(LogicalGraph logicalGraph, boolean overwrite); @Override void write(GraphCollection graphCollection, boolean overwrite); }
CSVDataSink extends CSVBase implements DataSink { @Override public void write(LogicalGraph logicalGraph) throws IOException { write(logicalGraph, false); } CSVDataSink(String csvPath, GradoopFlinkConfig config);  CSVDataSink(String csvPath, String metaDataPath, GradoopFlinkConfig config); @Override void write(LogicalGraph logicalGraph); @Override void write(GraphCollection graphCollection); @Override void write(LogicalGraph logicalGraph, boolean overwrite); @Override void write(GraphCollection graphCollection, boolean overwrite);  }