Package it.unimi.dsi.fastutil.ints

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


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

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

        String[] docids = val.split(",");
        IntList idList = new IntArrayList(docids.length);
        for (String docid : docids){
          idList.add(Integer.parseInt(docid.trim()));
        }
        int[] idArray = idList.toIntArray();
        StringBuffer sbuf = new StringBuffer();
        ZoieIndexReader zoieReader = getZoieReader();
        boolean first = true;
        for (int docid : idArray){
          long uid;
View Full Code Here

        String[] uids = val.split(",");
        IntList idList = new IntArrayList(uids.length);
        for (String uid : uids){
          idList.add(Integer.parseInt(uid.trim()));
        }
        int[] idArray = idList.toIntArray();
        StringBuffer sbuf = new StringBuffer();
        ZoieIndexReader zoieReader = getZoieReader();
        DocIDMapper mapper = zoieReader.getDocIDMaper();
        boolean first = true;
        for (int uid : idArray){
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.