Examples of toIntArray()


Examples of it.unimi.dsi.fastutil.ints.IntArrayList.toIntArray()

    IntArrayList intList = new IntArrayList();
    int docid;
    while((docid=docidIter.nextDoc())!=DocIdSetIterator.NO_MORE_DOCS){
      intList.add(docid);
    }
    assertTrue("wrong result from iter", Arrays.equals(ans, intList.toIntArray()));

    long[] newidArray = new long[count];
    for (int i=0;i<count;++i){
      newidArray[i]=i;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntArrayList.toIntArray()

      if (docid == DocIdSetIterator.NO_MORE_DOCS) break;
      intList.add(docid);
    }

    int[] answer = new int[]{0,1,10,11,20,21,30,31,40,41,50,51,60,61,70,71,80,81,90,91};
    assertTrue("wrong result from mix of next and skip",Arrays.equals(answer, intList.toIntArray()));
  }
}
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntArrayList.toIntArray()

            if (docid!=DocIDMapper.NOT_FOUND){
              delList.add(docid);
            }
          }
        }
        delArray = delList.toIntArray();
        }
      }
       
      if (delArray!=null && delArray.length > 0)
      {
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

          {
            list.add(i);
          }
        }
      }
      return list.toIntArray();
    }
 
  public static int[] parse(FacetDataCache dataCache,String rangeString)
  {
    String[] ranges = RangeFacetHandler.getRangeStrings(rangeString);
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

        if (index>=0)
        {
          list.add(index);
        }
      }
      return list.toIntArray();
  }
 
  /**
   * Same as convert(FacetDataCache dataCache,String[] vals) except
   * that the values are supplied in raw form so that we can take
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

      if (index>=0)
      {
        list.add(index);
      }
    }
    return list.toIntArray();
  }

  public static class FacetDocComparatorSource extends DocComparatorSource{
    private FacetHandler<FacetDataCache> _facetHandler;
    public FacetDocComparatorSource(FacetHandler<FacetDataCache> facetHandler){
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

      int index = dataCache.valArray.indexOf(vals[i]);
      if (index >= 0) {
        list.add(index);
      }
    }
    return list.toIntArray();
  }

  /**
   * Same as convert(FacetDataCache dataCache,String[] vals) except that the
   * values are supplied in raw form so that we can take advantage of the type
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

      int index = dataCache.valArray.indexOfWithType(vals[i]);
      if (index >= 0) {
        list.add(index);
      }
    }
    return list.toIntArray();
  }

  public static class FacetDocComparatorSource extends DocComparatorSource {
    private final FacetHandler<FacetDataCache<?>> _facetHandler;
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntList.toIntArray()

            if (docid!=DocIDMapper.NOT_FOUND){
              delList.add(docid);
            }
          }
        }
        delArray = delList.toIntArray();
        }
      }
       
      if (delArray!=null && delArray.length > 0)
      {
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntOpenHashSet.toIntArray()

        if (!idSet.contains(docid) && !reader.isDeleted(docid)) {
          idSet.add(docid);
        }
      }

      docsToFetch = idSet.toIntArray();
    }

    @Override
    public void run() {
      for (int i = 0; i < _numIter; ++i) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.