for (int part=0; part<numPartitions; part++) {
CategoryListIterator cli = clp.createCategoryListIterator(reader, part);
if (cli.init()) {
for (int doc=0; doc<maxDoc; doc++) {
if (cli.skipTo(doc)) {
docCategories.clear(false);
if (dpf[doc]==null) {
dpf[doc] = new int[numPartitions][];
}
long category;
while ((category = cli.nextCategory()) <= Integer.MAX_VALUE) {