static private void write(String filename, Map<Node, Integer> predicateStats, Map<Node, Integer> typeStats, long statsTotal) { // Write out the stats try (OutputStream statsOut = new BufferedOutputStream(new FileOutputStream(filename))) { write(statsOut, predicateStats, typeStats, statsTotal) ; } catch (IOException ex) { Log.warn(Stats.class, "Problem when writing stats file", ex) ; } }
/** Write statistics */ static public void write(OutputStream output, StatsResults stats) { write(output, stats.getPredicates(), stats.getTypes(), stats.getCount()) ; }
/** Write statistics */ static public void write(String filename, StatsResults stats) { write(filename, stats.getPredicates(), stats.getTypes(), stats.getCount()) ; }
@Override protected void exec() { DatasetGraphTDB dsg = TDBInternal.getDatasetGraphTDB(getDatasetGraph()); Node gn = getGraphName(); StatsResults results = stats(dsg, gn); Stats.write(System.out, results); } }
@Override protected void exec() { DatasetGraphTDB dsg = TDBInternal.getDatasetGraphTDB(getDatasetGraph()); Node gn = getGraphName(); StatsResults results = stats(dsg, gn); Stats.write(System.out, results); } }