* @return the destination!
*/
private Destination<Triple> createDestination() {
LoadMonitor monitor = new LoadMonitor(indexingDataset,
log, "triples",50000,100000);
final LoaderNodeTupleTable loaderTriples = new LoaderNodeTupleTable(
indexingDataset.getTripleTable().getNodeTupleTable(), "triples", monitor) ;
Destination<Triple> sink = new Destination<Triple>() {
long count = 0 ;
public final void start()
{
loaderTriples.loadStart() ;
loaderTriples.loadDataStart() ;
}
public final void send(Triple triple)
{
loaderTriples.load(triple.getSubject(), triple.getPredicate(),
triple.getObject()) ;
count++ ;
}
public final void flush() { }
public void close() { }
public final void finish()
{
loaderTriples.loadDataFinish() ;
loaderTriples.loadIndexStart() ;
loaderTriples.loadIndexFinish() ;
loaderTriples.loadFinish() ;
}
} ;
return sink ;
}