Coverage Report

Created: 2026-05-13 19:54

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/storage/segment/encoding_info.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 <stddef.h>
21
22
#include <functional>
23
#include <memory>
24
25
#include "common/config.h"
26
#include "common/status.h"
27
#include "storage/cache/page_cache.h"
28
#include "storage/segment/options.h"
29
#include "util/slice.h"
30
31
namespace doris {
32
33
enum class FieldType;
34
35
namespace segment_v2 {
36
37
class PageBuilder;
38
class PageDecoder;
39
struct PageBuilderOptions;
40
struct PageDecoderOptions;
41
enum EncodingTypePB : int;
42
43
// For better performance, some encodings (like BitShuffle) need to be decoded before being added to the PageCache.
44
class DataPagePreDecoder {
45
public:
46
    virtual Status decode(std::unique_ptr<DataPage>* page, Slice* page_slice, size_t size_of_tail,
47
                          bool _use_cache, segment_v2::PageTypePB page_type,
48
                          const std::string& file_path, size_t size_of_prefix = 0) = 0;
49
437
    virtual ~DataPagePreDecoder() = default;
50
};
51
52
class EncodingInfo {
53
public:
54
    // Get EncodingInfo for TypeInfo and EncodingTypePB
55
    static Status get(FieldType type, EncodingTypePB encoding_type,
56
                      EncodingPreference encoding_preference, const EncodingInfo** encoding);
57
58
    // optimize_value_search: whether the encoding scheme should optimize for ordered data
59
    // and support fast value seek operation
60
    static EncodingTypePB get_default_encoding(FieldType type,
61
                                               EncodingPreference encoding_preference,
62
                                               bool optimize_value_seek);
63
64
23.0k
    Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) const {
65
23.0k
        return _create_builder_func(opts, builder);
66
23.0k
    }
67
    Status create_page_builder(const PageBuilderOptions& opts,
68
                               std::unique_ptr<PageBuilder>& builder) const;
69
    Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts,
70
10.3k
                               PageDecoder** decoder) const {
71
10.3k
        return _create_decoder_func(data, opts, decoder);
72
10.3k
    }
73
    Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts,
74
                               std::unique_ptr<PageDecoder>& decoder) const;
75
0
    FieldType type() const { return _type; }
76
61.3k
    EncodingTypePB encoding() const { return _encoding; }
77
78
13.2k
    DataPagePreDecoder* get_data_page_pre_decoder() const { return _data_page_pre_decoder.get(); }
79
80
private:
81
    friend class EncodingInfoResolver;
82
83
    template <typename TypeEncodingTraits>
84
    explicit EncodingInfo(TypeEncodingTraits traits);
85
86
    using CreateBuilderFunc = std::function<Status(const PageBuilderOptions&, PageBuilder**)>;
87
    CreateBuilderFunc _create_builder_func;
88
89
    using CreateDecoderFunc =
90
            std::function<Status(const Slice&, const PageDecoderOptions& opts, PageDecoder**)>;
91
    CreateDecoderFunc _create_decoder_func;
92
93
    FieldType _type;
94
    EncodingTypePB _encoding;
95
    std::unique_ptr<DataPagePreDecoder> _data_page_pre_decoder;
96
};
97
98
struct EncodingMapHash {
99
24.8k
    size_t operator()(const FieldType& type) const { return int(type); }
100
45.1k
    size_t operator()(const std::pair<FieldType, EncodingTypePB>& pair) const {
101
45.1k
        return (int(pair.first) << 6) ^ pair.second;
102
45.1k
    }
103
};
104
105
class EncodingInfoResolver {
106
public:
107
    EncodingInfoResolver();
108
    ~EncodingInfoResolver();
109
110
    EncodingTypePB get_default_encoding(FieldType type, EncodingPreference encoding_preference,
111
                                        bool optimize_value_seek) const;
112
113
    Status get(FieldType data_type, EncodingTypePB encoding_type,
114
               EncodingPreference encoding_preference, const EncodingInfo** out);
115
116
private:
117
    // Not thread-safe
118
    template <FieldType type, EncodingTypePB encoding_type, bool optimize_value_seek = false>
119
    void _add_map();
120
121
    std::unordered_map<FieldType, EncodingTypePB, EncodingMapHash> _default_encoding_type_map;
122
123
    // default encoding for each type which optimizes value seek
124
    std::unordered_map<FieldType, EncodingTypePB, EncodingMapHash> _value_seek_encoding_map;
125
126
    std::unordered_map<std::pair<FieldType, EncodingTypePB>, EncodingInfo*, EncodingMapHash>
127
            _encoding_map;
128
};
129
130
template <FieldType type, EncodingTypePB encoding, typename CppType, typename Enabled = void>
131
struct TypeEncodingTraits {};
132
133
template <FieldType field_type, EncodingTypePB encoding_type>
134
struct EncodingTraits : TypeEncodingTraits<field_type, encoding_type,
135
                                           typename CppTypeTraits<field_type>::CppType> {
136
    using CppType = typename CppTypeTraits<field_type>::CppType;
137
    static const FieldType type = field_type;
138
    static const EncodingTypePB encoding = encoding_type;
139
};
140
141
template <FieldType type, EncodingTypePB encoding_type, bool optimize_value_seek>
142
979
void EncodingInfoResolver::_add_map() {
143
979
    EncodingTraits<type, encoding_type> traits;
144
979
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
979
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
341
        _default_encoding_type_map[type] = encoding_type;
147
341
    }
148
979
    if (optimize_value_seek &&
149
979
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
253
        _value_seek_encoding_map[type] = encoding_type;
151
253
    }
152
979
    auto key = std::make_pair(type, encoding_type);
153
979
    auto it = _encoding_map.find(key);
154
979
    if (it != _encoding_map.end()) {
155
88
        return;
156
88
    }
157
891
    _encoding_map.emplace(key, encoding.release());
158
891
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE1ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE3ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE5ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE7ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE9ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE10ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE11ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE26ELNS0_14EncodingTypePBE3ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE34ELNS0_14EncodingTypePBE3ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE35ELNS0_14EncodingTypePBE3ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE24ELNS0_14EncodingTypePBE4ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE14ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE14ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE28ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE28ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE29ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE29ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE15ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE15ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE40ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE40ELNS0_14EncodingTypePBE7ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE16ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE31ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE32ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE33ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE37ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE38ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE39ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6ELb1EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
11
        _value_seek_encoding_map[type] = encoding_type;
151
11
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
11
        return;
156
11
    }
157
0
    _encoding_map.emplace(key, encoding.release());
158
0
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
11
        _default_encoding_type_map[type] = encoding_type;
147
11
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
_ZN5doris10segment_v220EncodingInfoResolver8_add_mapILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ELb0EEEvv
Line
Count
Source
142
11
void EncodingInfoResolver::_add_map() {
143
11
    EncodingTraits<type, encoding_type> traits;
144
11
    std::unique_ptr<EncodingInfo> encoding(new EncodingInfo(traits));
145
11
    if (_default_encoding_type_map.find(type) == std::end(_default_encoding_type_map)) {
146
0
        _default_encoding_type_map[type] = encoding_type;
147
0
    }
148
11
    if (optimize_value_seek &&
149
11
        _value_seek_encoding_map.find(type) == _value_seek_encoding_map.end()) {
150
0
        _value_seek_encoding_map[type] = encoding_type;
151
0
    }
152
11
    auto key = std::make_pair(type, encoding_type);
153
11
    auto it = _encoding_map.find(key);
154
11
    if (it != _encoding_map.end()) {
155
0
        return;
156
0
    }
157
11
    _encoding_map.emplace(key, encoding.release());
158
11
}
159
160
} // namespace segment_v2
161
} // namespace doris