public void restartWriterMaps() { for (Long2IntClosedMapFunction map : maps) { if (map != null) { try { map.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void switchToSeqAccess(File fileOutputDir) throws IOException { boolean msgWritten = false; long start = System.currentTimeMillis(); for (Long2IntClosedMapFunction map : maps) { if (map != null) { if (!msgWritten) { System.out.println("Writing results of MultiTileAnalyser to temp files ..."); msgWritten = true; } map.switchToSeqAccess(fileOutputDir); } } System.out.println("Writing temp files took " + (System.currentTimeMillis() - start) + " ms"); }
public void stats(final String prefix) { for (Long2IntClosedMapFunction map : maps) { if (map != null) map.stats(prefix); } }
public void finish() { for (Long2IntClosedMapFunction map : maps) { if (map != null) map.finish(); } }