2626#include " paimon/predicate/predicate.h"
2727#include " paimon/result.h"
2828#include " paimon/type_fwd.h"
29- #include " paimon/utils/range.h"
3029#include " paimon/visibility.h"
3130
3231namespace paimon {
@@ -43,8 +42,8 @@ class PAIMON_EXPORT ReadContext {
4342 public:
4443 ReadContext (const std::string& path, const std::string& branch,
4544 const std::vector<std::string>& read_schema,
46- const std::shared_ptr<Predicate>& predicate, const std::vector<Range>& row_ranges ,
47- bool enable_predicate_filter, bool enable_prefetch, uint32_t prefetch_batch_count,
45+ const std::shared_ptr<Predicate>& predicate, bool enable_predicate_filter ,
46+ bool enable_prefetch, uint32_t prefetch_batch_count,
4847 uint32_t prefetch_max_parallel_num, bool enable_multi_thread_row_to_batch,
4948 uint32_t row_to_batch_thread_number, const std::optional<std::string>& table_schema,
5049 const std::shared_ptr<MemoryPool>& memory_pool,
@@ -77,10 +76,6 @@ class PAIMON_EXPORT ReadContext {
7776 return predicate_;
7877 }
7978
80- const std::vector<Range>& GetRowRanges () const {
81- return row_ranges_;
82- }
83-
8479 bool EnablePredicateFilter () const {
8580 return enable_predicate_filter_;
8681 }
@@ -114,7 +109,6 @@ class PAIMON_EXPORT ReadContext {
114109 std::string branch_;
115110 std::vector<std::string> read_schema_;
116111 std::shared_ptr<Predicate> predicate_;
117- std::vector<Range> row_ranges_;
118112 bool enable_predicate_filter_;
119113 bool enable_prefetch_;
120114 uint32_t prefetch_batch_count_;
@@ -273,18 +267,6 @@ class PAIMON_EXPORT ReadContextBuilder {
273267 ReadContextBuilder& WithFileSystemSchemeToIdentifierMap (
274268 const std::map<std::string, std::string>& fs_scheme_to_identifier_map);
275269
276- // / Set specific row ranges to read for targeted data access.
277- // /
278- // / This is primarily used in data evolution scenarios where only specific rows
279- // / need to be read. File ranges that do not intersect with the specified row ranges
280- // / will be filtered out, improving performance by avoiding unnecessary I/O.
281- // /
282- // / @param row_ranges Vector of specific row ranges to read.
283- // / @return Reference to this builder for method chaining.
284- // / @note If not set, all rows in the selected files will be returned.
285- // / @note This is commonly used in data evolution mode for selective reading.
286- ReadContextBuilder& SetRowRanges (const std::vector<Range>& row_ranges);
287-
288270 // / Build and return a `ReadContext` instance with input validation.
289271 // / @return Result containing the constructed `ReadContext` or an error status.
290272 Result<std::unique_ptr<ReadContext>> Finish ();
0 commit comments