use of org.apache.jena.tdb.solver.stats.StatsResults in project jena by apache.
the class tdbstats method exec.
@Override
protected void exec() {
DatasetGraphTDB dsg = getDatasetGraphTDB();
Node gn = getGraphName();
StatsResults results = stats(dsg, gn);
Stats.write(System.out, results);
}
use of org.apache.jena.tdb.solver.stats.StatsResults in project jena by apache.
the class TestStats method stats_02.
@Test
public void stats_02() {
NodeId gid = nt.getNodeIdForNode(NodeFactory.createURI("g1"));
StatsResults r = statsForGraph(gid);
assertEquals(1, r.getCount());
assertEquals(1, r.getPredicates().keySet().size());
}
use of org.apache.jena.tdb.solver.stats.StatsResults in project jena by apache.
the class TestStats method stats_03.
@Test
public void stats_03() {
NodeId gid = nt.getNodeIdForNode(NodeFactory.createURI("g2"));
StatsResults r = statsForGraph(gid);
assertEquals(2, r.getCount());
assertEquals(1, r.getPredicates().keySet().size());
}
use of org.apache.jena.tdb.solver.stats.StatsResults in project jena by apache.
the class TestStats method stats_04.
@Test
public void stats_04() {
StatsResults r = statsForGraph(null);
assertEquals(3, r.getCount());
assertEquals(1, r.getPredicates().keySet().size());
}
use of org.apache.jena.tdb.solver.stats.StatsResults in project jena by apache.
the class TestStats method stats_01.
@Test
public void stats_01() {
StatsResults r = statsForDftGraph();
assertEquals(1, r.getCount());
assertEquals(1, r.getPredicates().keySet().size());
}
Aggregations