From ca78e7a37ab664e829f42d83b9a77031adc2ffc6 Mon Sep 17 00:00:00 2001 From: Rui Mo Date: Tue, 1 Apr 2025 00:25:03 -0700 Subject: [PATCH] refactor: Remove unused SelectiveColumnReaderFactory (#12842) Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/12842 Reviewed By: xiaoxmeng Differential Revision: D72180145 Pulled By: bikramSingh91 fbshipit-source-id: 1e5c32c0bc227a208e36b7ca14e65b154364c776 --- bolt/dwio/dwrf/reader/SelectiveDwrfReader.h | 28 --------------------- 1 file changed, 28 deletions(-) diff --git a/bolt/dwio/dwrf/reader/SelectiveDwrfReader.h b/bolt/dwio/dwrf/reader/SelectiveDwrfReader.h index 834bc1654..2f4f2fc4f 100644 --- a/bolt/dwio/dwrf/reader/SelectiveDwrfReader.h +++ b/bolt/dwio/dwrf/reader/SelectiveDwrfReader.h @@ -69,32 +69,4 @@ class SelectiveDwrfReader { } }; -class SelectiveColumnReaderFactory : public ColumnReaderFactory { - public: - explicit SelectiveColumnReaderFactory( - std::shared_ptr scanSpec) - : scanSpec_(scanSpec) {} - - std::unique_ptr buildSelective( - const std::shared_ptr& requestedType, - const std::shared_ptr& fileType, - StripeStreams& stripe, - const StreamLabels& streamLabels, - dwio::common::ColumnReaderStatistics& stats, - FlatMapContext flatMapContext = {}) { - auto params = - DwrfParams(stripe, streamLabels, stats, std::move(flatMapContext)); - auto reader = SelectiveDwrfReader::build( - dwio::common::ColumnReaderOptions{}, - requestedType, - fileType, - params, - *scanSpec_); - reader->setIsTopLevel(); - return reader; - } - - private: - std::shared_ptr const scanSpec_; -}; } // namespace bytedance::bolt::dwrf