/** {@inheritDoc} */ public int[] toArray( int[] dest ) { return TIntIntHashMap.this.keys( dest ); }
/** {@inheritDoc} */ public int[] toArray() { return TIntIntHashMap.this.keys(); }
index.put(key, value); int[] idx = index.keys(); Arrays.sort(idx); int length = weights.length;
/** {@inheritDoc} */ public int[] toArray( int[] dest ) { return TIntIntHashMap.this.keys( dest ); }
/** {@inheritDoc} */ @Override public int[] toArray() { return TIntIntHashMap.this.keys(); }
/** {@inheritDoc} */ public int[] toArray() { return TIntIntHashMap.this.keys(); }
/** {@inheritDoc} */ @Override public int[] toArray( int[] dest ) { return TIntIntHashMap.this.keys( dest ); }
@Override public int[] indices() { return data.keys(); }
/** {@inheritDoc} */ public int[] toArray( int[] dest ) { return TIntIntHashMap.this.keys( dest ); }
int[] sortKeys() { int keys[] = pdf.keys(); Arrays.sort(keys); return keys; }
private void toAbsoluteResources() { //Now transforms into an absolute profile sortedMinProfile = profilesMin[0].keys(); Arrays.sort(sortedMinProfile); sortedMaxProfile = profilesMax[0].keys(); Arrays.sort(sortedMaxProfile); for (int i = 0; i < nbDims; i++) { toAbsoluteFreeResources(profilesMin[i], sortedMinProfile); toAbsoluteFreeResources(profilesMax[i], sortedMaxProfile); } }
private void absoluteValues() { sortedMinProfile = profilesMin[0].keys(); Arrays.sort(sortedMinProfile); sortedMaxProfile = profilesMax[0].keys(); Arrays.sort(sortedMaxProfile); for (int d = 0; d < nbDims; d++) { toAbsoluteFreeResources(profilesMin[d], sortedMinProfile); toAbsoluteFreeResources(profilesMax[d], sortedMaxProfile); } }
private void absoluteValues() { sortedMinProfile = profilesMin[0].keys(); Arrays.sort(sortedMinProfile); sortedMaxProfile = profilesMax[0].keys(); Arrays.sort(sortedMaxProfile); for (int d = 0; d < nbDims; d++) { toAbsoluteFreeResources(profilesMin[d], sortedMinProfile); toAbsoluteFreeResources(profilesMax[d], sortedMaxProfile); } }
private void toAbsoluteResources() { //Now transforms into an absolute profile sortedMinProfile = profilesMin[0].keys(); Arrays.sort(sortedMinProfile); sortedMaxProfile = profilesMax[0].keys(); Arrays.sort(sortedMaxProfile); for (int i = 0; i < nbDims; i++) { toAbsoluteFreeResources(profilesMin[i], sortedMinProfile); toAbsoluteFreeResources(profilesMax[i], sortedMaxProfile); } }
private void resolveRedirectsInMemory(){ int i = 0; for (int src : redirectIdsToPageIds.keys()) { redirectIdsToPageIds.put(src, resolveRedirect(src)); if(i%10000==0) LOG.info("resolving redirect # " + i); i++; } }
private void resolveRedirectsInMemory(){ int i = 0; for (int src : redirectIdsToPageIds.keys()) { redirectIdsToPageIds.put(src, resolveRedirect(src)); if(i%10000==0) LOG.info("resolving redirect # " + i); i++; } }
private void loadRedirectsIntoDatabase(Language language) throws DaoException{ int i = 0; LOG.info("Begin loading redirects into database: "); for(int src : redirectIdsToPageIds.keys()){ if(i%10000==0) LOG.info("loaded " + i + " into database."); redirects.save(language, src, redirectIdsToPageIds.get(src)); metaDao.incrementRecords(Redirect.class, language); i++; } LOG.info("End loading redirects into database."); }
private void loadRedirectsIntoDatabase(Language language) throws DaoException{ int i = 0; LOG.info("Begin loading redirects into database: "); for(int src : redirectIdsToPageIds.keys()){ if(i%10000==0) LOG.info("loaded " + i + " into database."); redirects.save(language, src, redirectIdsToPageIds.get(src)); metaDao.incrementRecords(Redirect.class, language); i++; } LOG.info("End loading redirects into database."); }
private void countCellsPerColumn() throws IOException { for (int id : matrix.getRowIds()) { MatrixRow row = matrix.getRow(id); for (int i = 0; i < row.getNumCols(); i++) { colCounts.adjustOrPutValue(row.getColIndex(i), 1, 1); } } colIds = colCounts.keys(); LOG.info("found " + colIds.length + " unique column ids in matrix"); Arrays.sort(colIds); }
private void countCellsPerColumn() throws IOException { for (int id : matrix.getRowIds()) { MatrixRow row = matrix.getRow(id); for (int i = 0; i < row.getNumCols(); i++) { colCounts.adjustOrPutValue(row.getColIndex(i), 1, 1); } } colIds = colCounts.keys(); LOG.info("found " + colIds.length + " unique column ids in matrix"); Arrays.sort(colIds); }