/root/doris/be/src/exec/olap_common.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "exec/olap_common.h" |
19 | | |
20 | | #include <utility> |
21 | | #include <vector> |
22 | | |
23 | | #include "exec/olap_utils.h" |
24 | | |
25 | | namespace doris { |
26 | | |
27 | 0 | Status OlapScanKeys::get_key_range(std::vector<std::unique_ptr<OlapScanRange>>* key_range) { |
28 | 0 | key_range->clear(); |
29 | |
|
30 | 0 | for (int i = 0; i < _begin_scan_keys.size(); ++i) { |
31 | 0 | std::unique_ptr<OlapScanRange> range(new OlapScanRange()); |
32 | 0 | range->begin_scan_range = _begin_scan_keys[i]; |
33 | 0 | range->end_scan_range = _end_scan_keys[i]; |
34 | 0 | range->begin_include = _begin_include; |
35 | 0 | range->end_include = _end_include; |
36 | 0 | key_range->emplace_back(std::move(range)); |
37 | 0 | } |
38 | |
|
39 | 0 | return Status::OK(); |
40 | 0 | } |
41 | | |
42 | | } // namespace doris |
43 | | |
44 | | /* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */ |