indexes.sort();
int start = data.size();
indexer.put(vecid, start);
lengths.put(vecid, indexes.size() * 2);
TIntIterator iter = indexes.iterator();
if (max < accumuFactor * sparseFactor) {
while (iter.hasNext()) {
int key = iter.next();
float value = results.get(key);
data.add(key);
data.add(value);
}
} else {
while (iter.hasNext()) {
int key = iter.next();
float value = results.get(key) * accumuFactor / max;
data.add(key);
data.add(value);
}
}