Search in sources :

Example 1 with Float2IntMap

use of it.unimi.dsi.fastutil.floats.Float2IntMap in project pinot by linkedin.

the class NoDictionarySingleColumnGroupKeyGenerator method getKeyForValue.

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

Aggregations

Float2IntMap (it.unimi.dsi.fastutil.floats.Float2IntMap)1