// ---- Load auxillary table
String subColName = "sub" ;
String superColName = "super" ;
TableDesc tableDesc = new TableDesc(tableName, subColName, superColName) ;
TupleTable tuples = new TupleTable(store, tableDesc) ;
// ---- Create auxillary table
String colType = store.getNodeTableDesc().getNodeRefTypeString() ;
try {
String sqlCreateStr =
String.format("CREATE TABLE %s ( sub %s not null, super %s not null )",
tableName, colType, colType) ;
store.getConnection().execUpdate(sqlCreateStr) ;
} catch (SQLException ex) { throw new SDBExceptionSQL(ex) ; }
loader.setTableDesc(tableDesc) ;
loader.start() ;
for (Pair<Node, Node> p : tg )
loader.load(p.getLeft(), p.getRight()) ;
loader.finish() ;
// ---- Dump it.
tuples.dump() ;
store.close() ;
}