Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 private DocIdSet createDocSetOldBatch(int[] nums) throws Exception {
   DocSet p4d = DocSetFactory.getP4DDocSetInstance();
   p4d.addDocs(nums, 0, nums.length);
   return p4d;
 }