1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/optimizer/topn_optimizer.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/common/constants.hpp" |
12 | |
13 | namespace duckdb { |
14 | class LogicalOperator; |
15 | class Optimizer; |
16 | |
17 | class TopN { |
18 | public: |
19 | //! Optimize ORDER BY + LIMIT to TopN |
20 | unique_ptr<LogicalOperator> Optimize(unique_ptr<LogicalOperator> node); |
21 | }; |
22 | |
23 | } // namespace duckdb |
24 |