Search in sources :

Example 1 with Double2IntMap

use of it.unimi.dsi.fastutil.doubles.Double2IntMap in project pinot by linkedin.

the class NoDictionarySingleColumnGroupKeyGenerator method getKeyForValue.

@SuppressWarnings("unchecked")
private int getKeyForValue(double value) {
    Double2IntMap map = (Double2IntMap) _groupKeyMap;
    int groupId = map.get(value);
    if (groupId == INVALID_ID) {
        groupId = _numGroupKeys;
        map.put(value, _numGroupKeys++);
    }
    return groupId;
}
Also used : Double2IntMap(it.unimi.dsi.fastutil.doubles.Double2IntMap)

Aggregations

Double2IntMap (it.unimi.dsi.fastutil.doubles.Double2IntMap)1