These new API methods is used for lucene-copydatabase.cc.
Traverse all terms, for each term, using postlist_begin() to traverse the postlist for this term