// with result fetch size 100
index.setResultFetchSize(100);
readResult(executeQuery(stmt));
// with 100 limit
QueryImpl query = (QueryImpl) qm.createQuery(stmt, Query.XPATH);
query.setLimit(100);
readResult(query.execute());
} finally {
index.setResultFetchSize(resultFetchSize);
}
for (NodeIterator it = testRootNode.getNodes(); it.hasNext(); ) {