private DocIdSet createDocSetOldBatch(ArrayList<Integer> nums) throws Exception { DocSet p4d = DocSetFactory.getP4DDocSetInstance(); int[] numsArray = new int[nums.size()]; int i = 0; for (Integer num : nums) { numsArray[i++] = num; } p4d.addDocs(numsArray, 0, numsArray.length); return p4d; }
private DocIdSet createDocSetOldBatch(int[] nums) throws Exception { DocSet p4d = DocSetFactory.getP4DDocSetInstance(); p4d.addDocs(nums, 0, nums.length); return p4d; }