Search in sources :

Example 1 with Long2IntMap

use of it.unimi.dsi.fastutil.longs.Long2IntMap in project pinot by linkedin.

the class NoDictionarySingleColumnGroupKeyGenerator method getKeyForValue.

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

Aggregations

Long2IntMap (it.unimi.dsi.fastutil.longs.Long2IntMap)1