public static StatsCollector gatherTDB(GraphTDB graph)
{
long count = 0 ;
Map<NodeId, Integer> predicateIds = new HashMap<NodeId, Integer>(1000) ;
TupleIndex index = graph.getNodeTupleTable().getTupleTable().getIndex(0) ;
if ( ! index.getName().equals("SPO") &&
! index.getName().equals("GSPO") )
Log.warn(StatsCollector.class, "May not be the right index: "+index.getName()+" mapping="+index.getColumnMap().getLabel()) ;
boolean quads = (index.getTupleLength()==4) ;
Iterator<Tuple<NodeId>> iter = graph.getNodeTupleTable().findAll() ;
StatsCollectorNodeId collector = new StatsCollectorNodeId() ;
for ( ; iter.hasNext() ; )