if (documentPointers.length > 0)
assertEquals("Number of pointers for docid " + docid + " is incorrect", documentPointers[docid], docpointers);
assertEquals("Document length for docid "+docid+" is incorrect", documentLengths[docid], doclen);
}
}
CollectionStatistics cs = index.getCollectionStatistics();
assertEquals("Number of documents is incorrect", cs.getNumberOfDocuments(), docid + 1);
assertEquals("Number of pointers is incorrect", cs.getNumberOfPointers(), pointers);
assertEquals("Number of tokens is incorrect", cs.getNumberOfTokens(), tokens);
if (numberOfTerms > 0)
{
assertEquals("Not all termIds found in direct index", termIds.size(), numberOfTerms);
}
}