Examples of toIntArray()


Examples of edu.cmu.graphchi.util.IntegerBuffer.toIntArray()

                                            synchronized (buffers[i]) {
                                                buffers[i] = new IntegerBuffer(BUFFER_CAPACITY);
                                            }
                                            parallelExecutor.submit(new Runnable() { public void run() {
                                                try {
                                                    int[] d = toDrain.toIntArray();
                                                    Arrays.sort(d);
                                                    DiscreteDistribution dist = new DiscreteDistribution(d);
                                                    mergeWith(drainIdx, dist);
                                                } catch (Exception err ) {
                                                    err.printStackTrace();
View Full Code Here

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

        if ( field < 0 ) throw new IllegalArgumentException( "Field " + indexedFieldName[ i ] + " is not part of factory " + factory.getClass().getName() );
        indexedFields.add( field );
      }
    }

    int[] indexedField = indexedFields.toIntArray();
    Arrays.sort( indexedField );
    return indexedField;
  }

  /**
 
View Full Code Here

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

      id = rs.getInt( 1 );
      ids.add( id );
      id2doc.put( i, id );
    }
   
    doc2id = ids.toIntArray();
    rs.close();
    s.close();
    connection.close();
  }
View Full Code Here

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

        usedIndices.add( i );
      }
    }
    // TODO: test that this clustered multiterm does work
    final IndexIterator result = concatenated ?
        new DocumentalConcatenatedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) :
          new DocumentalMergedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() );
    result.term( prefix );
    return result;
   
  }
View Full Code Here

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

      }
    }
    // TODO: test that this clustered multiterm does work
    final IndexIterator result = concatenated ?
        new DocumentalConcatenatedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) :
          new DocumentalMergedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() );
    result.term( prefix );
    return result;
   
  }
 
View Full Code Here

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

    if ( DEBUG ) LOGGER.debug( "Indices used for " + term + ": " + usedIndices );

    if ( iterators.isEmpty() ) return index.getEmptyIndexIterator( term );
    final IndexIterator indexIterator =
      index.concatenated ?
          new DocumentalConcatenatedClusterIndexIterator( this, iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) :
            new DocumentalMergedClusterIndexIterator( this, iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) ;
         
    indexIterator.term( term );
    return indexIterator;
  }
View Full Code Here

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

    if ( iterators.isEmpty() ) return index.getEmptyIndexIterator( term );
    final IndexIterator indexIterator =
      index.concatenated ?
          new DocumentalConcatenatedClusterIndexIterator( this, iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) :
            new DocumentalMergedClusterIndexIterator( this, iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) ;
         
    indexIterator.term( term );
    return indexIterator;
  }
}
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.IntArrayList.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.IntArrayList.toIntArray()

      }
    }
   
    mterms.seal();

    return new FacetDataCache(order,mterms,freqList.toIntArray(),minIDList.toIntArray(),maxIDList.toIntArray(),TermCountSize.large);
  }
 
  private static class CompactMultiFacetDocComparatorSource extends DocComparatorSource{
    private final CompactMultiValueFacetHandler _facetHandler;
        private CompactMultiFacetDocComparatorSource(CompactMultiValueFacetHandler facetHandler){
View Full Code Here

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

      termEnum.close();
    }
    list.seal();

    this.valArray = list;
    this.freqs = freqList.toIntArray();
    this.minIDs = minIDList.toIntArray();
    this.maxIDs = maxIDList.toIntArray();
  }
 
  private static int[] convertString(FacetDataCache dataCache,String[] vals)
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.