`SELECT toDateTime(topKWeighted(-9223372036854775807, '-0.02')(NULL), '104857.5') FROM remote('127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}127.0\00\0{2,3}', system.one) ORDER BY length(topK(1048577)(tuple(NULL))) ASC, '0' ASC NULLS LAST`
{
        auto it = counter_map.find(key, hash);
        if (!it)
            return nullptr;
        return it->getMapped();
    }
    void rebuildCounterMap()
    {
        removed_keys = 0;
        counter_map.clear();
        for (auto * counter : counter_list)
            counter_map[counter->key] = counter;
    }
    using CounterMap = HashMapWithStackMemory<TKey, Counter *, Hash, 4>;
    CounterMap counter_map;
    std::vector<Counter *> counter_list;
    std::vector<UInt64> alpha_map;
    SpaceSavingArena<TKey> arena;
    size_t m_capacity;
    size_t removed_keys = 0;
};
}