Пример #1
0
 public void restartWriterMaps() {
   for (Long2IntClosedMapFunction map : maps) {
     if (map != null) {
       try {
         map.close();
       } catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
       }
     }
   }
 }
Пример #2
0
 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");
 }
Пример #3
0
 public void stats(final String prefix) {
   for (Long2IntClosedMapFunction map : maps) {
     if (map != null) map.stats(prefix);
   }
 }
Пример #4
0
 public void finish() {
   for (Long2IntClosedMapFunction map : maps) {
     if (map != null) map.finish();
   }
 }