Package com.carrotsearch.hppc

Examples of com.carrotsearch.hppc.IntOpenHashSet.toArray()


   * @return an array of IDs from the subtree of this node, including the ID of this node.
   */
  public int[] getSubIdArray()
  {
    IntOpenHashSet set = getSubIdSet();
    int[] list = set.toArray();
    Arrays.sort(list);
   
    return list;
  }
 
View Full Code Here


   * @return an array of IDs from the subtree of this node, including the ID of this node.
   */
  public int[] getSubIdArray()
  {
    IntOpenHashSet set = getSubIdSet();
    int[] list = set.toArray();
    Arrays.sort(list);
   
    return list;
  }
 
View Full Code Here

   * @return an array of IDs from the subtree of this node, including the ID of this node.
   */
  public int[] getSubIdArray()
  {
    IntOpenHashSet set = getSubIdSet();
    int[] list = set.toArray();
    Arrays.sort(list);
   
    return list;
  }
 
View Full Code Here

   * @return the sorted list of terminal IDs belonging to this argument give the specific tree.
   */
  public int[] getSortedTerminalIdList(CTTree tree)
  {
    IntOpenHashSet set = getTerminalIdSet(tree);
    int[] ids = set.toArray();
   
    Arrays.sort(ids);
    return ids;
  }
 
View Full Code Here

    IntOpenHashSet sArg = arg .getSubIdSet();
   
    if (pred.isDescendentOf(arg))
      sArg.removeAll(pred.getSubIdSet());     
   
    int[] span = sArg.toArray();
    return span;
  }
 
  static public void main(String[] args)
  {
View Full Code Here

        {
          build.append("_");
        }
        else
        {
          indices = set.toArray();
          Arrays.sort(indices);
          build.append("tpc=");
          build.append(UTArray.join(indices, ","));
        }
       
View Full Code Here

                    if(parser.nextToken() == Token.START_ARRAY) {
                        IntOpenHashSet precisions = new IntOpenHashSet();
                        while(parser.nextToken() != Token.END_ARRAY) {
                            precisions.add(parsePrecision(parser));
                        }
                        precision = precisions.toArray();
                    } else {
                        precision = new int[] { parsePrecision(parser) };
                    }
                } else if (FIELD_VALUE.equals(fieldName)) {
                    if(Double.isNaN(lon) && Double.isNaN(lat)) {
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.