diff options
author | hor911 <hor911@ydb.tech> | 2023-09-25 14:11:21 +0300 |
---|---|---|
committer | hor911 <hor911@ydb.tech> | 2023-09-25 15:32:05 +0300 |
commit | 6d6f24fa8c8b64387a8250e3cc5f17fbbd6a71c8 (patch) | |
tree | 7c9a82ef3849b3193766bfdc07fa49c2b6b38b72 | |
parent | ea3d7713c703fce4bcd221922f95349df72bdf48 (diff) | |
download | ydb-6d6f24fa8c8b64387a8250e3cc5f17fbbd6a71c8.tar.gz |
Remove legacy unused class
-rw-r--r-- | ydb/library/yql/dq/runtime/dq_tasks_runner.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ydb/library/yql/dq/runtime/dq_tasks_runner.h b/ydb/library/yql/dq/runtime/dq_tasks_runner.h index 7801b8582d..b50f2b6f51 100644 --- a/ydb/library/yql/dq/runtime/dq_tasks_runner.h +++ b/ydb/library/yql/dq/runtime/dq_tasks_runner.h @@ -148,35 +148,6 @@ struct TDqTaskRunnerStats : public TTaskRunnerStatsBase { } }; -struct TDqTaskRunnerStatsInplace : public TTaskRunnerStatsBase { - // all stats are owned by this object - TVector<THolder<TDqInputChannelStats>> InputChannelHolder; - TVector<THolder<TDqAsyncInputBufferStats>> SourceHolder; - TVector<THolder<TDqOutputChannelStats>> OutputChannelHolder; - - template<typename TStat> - static TStat* GetOrCreate(THashMap<ui64, const TStat*>& mapper, TVector<THolder<TStat>>& holder, ui64 statIdx) { - if (auto it = mapper.find(statIdx); it != mapper.end()) { - return const_cast<TStat*>(it->second); - } - holder.push_back(MakeHolder<TStat>(statIdx)); - mapper[statIdx] = holder.back().Get(); - return holder.back().Get(); - } - - TDqInputChannelStats* MutableInputChannel(ui64 channelId) override { - return GetOrCreate(InputChannels, InputChannelHolder, channelId); - } - - TDqAsyncInputBufferStats* MutableSource(ui64 sourceId) override { - return GetOrCreate(Sources, SourceHolder, sourceId); - } - - TDqOutputChannelStats* MutableOutputChannel(ui64 channelId) override { - return GetOrCreate(OutputChannels, OutputChannelHolder, channelId); - } -}; - // Provides read access to TTaskRunnerStatsBase // May or may not own the underlying object class TDqTaskRunnerStatsView { |