be/src/format/table/hudi_jni_reader.h
Line | Count | Source |
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 | | #pragma once |
19 | | |
20 | | #include <cstddef> |
21 | | #include <string> |
22 | | #include <unordered_map> |
23 | | #include <unordered_set> |
24 | | #include <vector> |
25 | | |
26 | | #include "common/status.h" |
27 | | #include "format/jni_reader.h" |
28 | | #include "storage/olap_scan_common.h" |
29 | | |
30 | | namespace doris { |
31 | | class RuntimeProfile; |
32 | | class RuntimeState; |
33 | | class SlotDescriptor; |
34 | | class Block; |
35 | | } // namespace doris |
36 | | |
37 | | namespace doris { |
38 | | #include "common/compile_check_begin.h" |
39 | | class HudiJniReader : public JniReader { |
40 | | ENABLE_FACTORY_CREATOR(HudiJniReader); |
41 | | |
42 | | public: |
43 | | static const std::string HOODIE_CONF_PREFIX; |
44 | | static const std::string HADOOP_CONF_PREFIX; |
45 | | |
46 | | HudiJniReader(const TFileScanRangeParams& scan_params, const THudiFileDesc& hudi_params, |
47 | | const std::vector<SlotDescriptor*>& file_slot_descs, RuntimeState* state, |
48 | | RuntimeProfile* profile); |
49 | | |
50 | 0 | ~HudiJniReader() override = default; |
51 | | |
52 | | Status init_reader(); |
53 | | |
54 | | private: |
55 | | const TFileScanRangeParams& _scan_params; |
56 | | const THudiFileDesc& _hudi_params; |
57 | | }; |
58 | | |
59 | | #include "common/compile_check_end.h" |
60 | | } // namespace doris |