question: static private < S > long writeSPOs ( final AbstractTripleStore database , final AbstractTripleStore statementStore , final SPO [ ] stmts , final int numStmts , final IWrittenSPOArray callback ) { final IChunkedOrderedIterator < ISPO > itr = new ChunkedArrayIterator < ISPO > ( numStmts , stmts , null ) ; final AbstractTripleStore sink = statementStore != null ? statementStore : database ; if ( log . isInfoEnabled ( ) ) { log . info ( "writing " + numStmts + " on " + ( statementStore != null ? "statementStore" : "database" ) ) ; if ( DEBUG ) { for ( int i = 0 ; i < numStmts ; i ++ ) { log . debug ( "spo: " + stmts [ i ] ) ; } } } final long nwritten = database . addStatements ( sink , false , itr , null ) ; if ( callback != null ) { callback . didWriteSPOs ( stmts , numStmts ) ; } return nwritten ; }
target:  Adds the statements to each index (batch api, NO truth maintenance).