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 | | #include "storage/segment/encoding_info.h" |
19 | | |
20 | | #include <gen_cpp/olap_file.pb.h> |
21 | | #include <gen_cpp/segment_v2.pb.h> |
22 | | |
23 | | #include <array> |
24 | | #include <iterator> |
25 | | #include <type_traits> |
26 | | #include <unordered_map> |
27 | | #include <utility> |
28 | | |
29 | | #include "common/config.h" |
30 | | #include "common/exception.h" |
31 | | #include "runtime/exec_env.h" |
32 | | #include "storage/olap_common.h" |
33 | | #include "storage/segment/binary_dict_page.h" |
34 | | #include "storage/segment/binary_dict_page_pre_decoder.h" |
35 | | #include "storage/segment/binary_plain_page.h" |
36 | | #include "storage/segment/binary_plain_page_v2.h" |
37 | | #include "storage/segment/binary_plain_page_v2_pre_decoder.h" |
38 | | #include "storage/segment/binary_prefix_page.h" |
39 | | #include "storage/segment/bitshuffle_page.h" |
40 | | #include "storage/segment/bitshuffle_page_pre_decoder.h" |
41 | | #include "storage/segment/frame_of_reference_page.h" |
42 | | #include "storage/segment/options.h" |
43 | | #include "storage/segment/plain_page.h" |
44 | | #include "storage/segment/rle_page.h" |
45 | | #include "storage/tablet/tablet_schema.h" |
46 | | #include "storage/types.h" |
47 | | |
48 | | namespace doris { |
49 | | namespace segment_v2 { |
50 | | |
51 | | template <FieldType type, typename CppType> |
52 | | struct TypeEncodingTraits<type, PLAIN_ENCODING, CppType> { |
53 | 1.40k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
54 | 1.40k | return PlainPageBuilder<type>::create(builder, opts); |
55 | 1.40k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 2 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 2 | return PlainPageBuilder<type>::create(builder, opts); | 55 | 2 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 1.13k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 1.13k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 1.13k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 266 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 266 | return PlainPageBuilder<type>::create(builder, opts); | 55 | 266 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE2EfvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE2EdvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2EhvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE2ENS_8uint24_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE2EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE2EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE2ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE2EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE2ENS_11decimal12_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE2EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE2ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE2EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE2EN4wide7integerILm256EiEEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE2EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE2EovE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
56 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
57 | 0 | PageDecoder** decoder) { |
58 | 0 | *decoder = new PlainPageDecoder<type>(data, opts); |
59 | 0 | return Status::OK(); |
60 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE2EfvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE2EdvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2EhvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE2ENS_8uint24_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE2EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE2EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE2ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE2EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE2ENS_11decimal12_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE2EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE2ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE2EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE2EN4wide7integerILm256EiEEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE2EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE2EovE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
61 | | }; |
62 | | |
63 | | template <FieldType type> |
64 | | struct TypeEncodingTraits<type, PLAIN_ENCODING, Slice> { |
65 | 15.3k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
66 | 15.3k | return BinaryPlainPageBuilder<type>::create(builder, opts); |
67 | 15.3k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 4.90k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 4.90k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 4.90k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 10.4k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 10.4k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 10.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
68 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
69 | 2.81k | PageDecoder** decoder) { |
70 | 2.81k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); |
71 | 2.81k | return Status::OK(); |
72 | 2.81k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 2.79k | PageDecoder** decoder) { | 70 | 2.79k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 2.79k | return Status::OK(); | 72 | 2.79k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 21 | PageDecoder** decoder) { | 70 | 21 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 21 | return Status::OK(); | 72 | 21 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
73 | | }; |
74 | | |
75 | | template <FieldType type, typename CppType> |
76 | | struct TypeEncodingTraits<type, PLAIN_ENCODING_V2, CppType> { |
77 | | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
78 | | return PlainPageBuilder<type>::create(builder, opts); |
79 | | } |
80 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
81 | | PageDecoder** decoder) { |
82 | | *decoder = new PlainPageDecoder<type>(data, opts); |
83 | | return Status::OK(); |
84 | | } |
85 | | }; |
86 | | |
87 | | template <FieldType type> |
88 | | struct TypeEncodingTraits<type, PLAIN_ENCODING_V2, Slice> { |
89 | 600 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
90 | 600 | return BinaryPlainPageV2Builder<type>::create(builder, opts); |
91 | 600 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 599 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 599 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 599 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 1 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 1 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 1 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
92 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
93 | 0 | PageDecoder** decoder) { |
94 | 0 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); |
95 | 0 | return Status::OK(); |
96 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
97 | | }; |
98 | | |
99 | | template <FieldType type, typename CppType> |
100 | | struct TypeEncodingTraits<type, BIT_SHUFFLE, CppType, |
101 | | typename std::enable_if<!std::is_same<CppType, Slice>::value>::type> { |
102 | 7.12k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
103 | 7.12k | return BitshufflePageBuilder<type>::create(builder, opts); |
104 | 7.12k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 617 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 617 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 617 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 13 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 13 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 13 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 5.77k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 5.77k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 5.77k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 359 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 359 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 359 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 4 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 4 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 4 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 335 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 335 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 335 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 2 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 2 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 2 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EhvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ENS_8uint24_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 4 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 4 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 4 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 7 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 7 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 7 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 11 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 11 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 11 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 2 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 2 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 2 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EN4wide7integerILm256EiEEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
105 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
106 | 5.75k | PageDecoder** decoder) { |
107 | 5.75k | *decoder = new BitShufflePageDecoder<type>(data, opts); |
108 | 5.75k | return Status::OK(); |
109 | 5.75k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 336 | PageDecoder** decoder) { | 107 | 336 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 336 | return Status::OK(); | 109 | 336 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 5 | PageDecoder** decoder) { | 107 | 5 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 5 | return Status::OK(); | 109 | 5 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 4.99k | PageDecoder** decoder) { | 107 | 4.99k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 4.99k | return Status::OK(); | 109 | 4.99k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 222 | PageDecoder** decoder) { | 107 | 222 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 222 | return Status::OK(); | 109 | 222 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 187 | PageDecoder** decoder) { | 107 | 187 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 187 | return Status::OK(); | 109 | 187 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1 | PageDecoder** decoder) { | 107 | 1 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1 | return Status::OK(); | 109 | 1 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EhvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ENS_8uint24_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 5 | PageDecoder** decoder) { | 107 | 5 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 5 | return Status::OK(); | 109 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 5 | PageDecoder** decoder) { | 107 | 5 | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 5 | return Status::OK(); | 109 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EN4wide7integerILm256EiEEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
110 | | }; |
111 | | |
112 | | template <> |
113 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_BOOL, RLE, uint8_t> { |
114 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
115 | 0 | return RlePageBuilder<FieldType::OLAP_FIELD_TYPE_BOOL>::create(builder, opts); |
116 | 0 | } |
117 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
118 | 0 | PageDecoder** decoder) { |
119 | 0 | *decoder = new RlePageDecoder<FieldType::OLAP_FIELD_TYPE_BOOL>(data, opts); |
120 | 0 | return Status::OK(); |
121 | 0 | } |
122 | | }; |
123 | | |
124 | | template <FieldType type> |
125 | | struct TypeEncodingTraits<type, DICT_ENCODING, Slice> { |
126 | 3.80k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
127 | 3.80k | return BinaryDictPageBuilder::create(builder, opts); |
128 | 3.80k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 2 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 2 | return BinaryDictPageBuilder::create(builder, opts); | 128 | 2 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 140 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 140 | return BinaryDictPageBuilder::create(builder, opts); | 128 | 140 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 3.35k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 3.35k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 3.35k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 310 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 310 | return BinaryDictPageBuilder::create(builder, opts); | 128 | 310 | } |
|
129 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
130 | 4.39k | PageDecoder** decoder) { |
131 | 4.39k | *decoder = new BinaryDictPageDecoder(data, opts); |
132 | 4.39k | return Status::OK(); |
133 | 4.39k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 1 | PageDecoder** decoder) { | 131 | 1 | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 1 | return Status::OK(); | 133 | 1 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 4.27k | PageDecoder** decoder) { | 131 | 4.27k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 4.27k | return Status::OK(); | 133 | 4.27k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 111 | PageDecoder** decoder) { | 131 | 111 | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 111 | return Status::OK(); | 133 | 111 | } |
|
134 | | }; |
135 | | |
136 | | template <> |
137 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_DATE, FOR_ENCODING, |
138 | | typename CppTypeTraits<FieldType::OLAP_FIELD_TYPE_DATE>::CppType> { |
139 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
140 | 0 | return FrameOfReferencePageBuilder<FieldType::OLAP_FIELD_TYPE_DATE>::create(builder, opts); |
141 | 0 | } |
142 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
143 | 0 | PageDecoder** decoder) { |
144 | 0 | *decoder = new FrameOfReferencePageDecoder<FieldType::OLAP_FIELD_TYPE_DATE>(data, opts); |
145 | 0 | return Status::OK(); |
146 | 0 | } |
147 | | }; |
148 | | |
149 | | template <> |
150 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_DATEV2, FOR_ENCODING, |
151 | | typename CppTypeTraits<FieldType::OLAP_FIELD_TYPE_DATEV2>::CppType> { |
152 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
153 | 0 | return FrameOfReferencePageBuilder<FieldType::OLAP_FIELD_TYPE_DATEV2>::create(builder, |
154 | 0 | opts); |
155 | 0 | } |
156 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
157 | 0 | PageDecoder** decoder) { |
158 | 0 | *decoder = new FrameOfReferencePageDecoder<FieldType::OLAP_FIELD_TYPE_DATEV2>(data, opts); |
159 | 0 | return Status::OK(); |
160 | 0 | } |
161 | | }; |
162 | | |
163 | | template <> |
164 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, FOR_ENCODING, |
165 | | typename CppTypeTraits<FieldType::OLAP_FIELD_TYPE_DATETIMEV2>::CppType> { |
166 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
167 | 0 | return FrameOfReferencePageBuilder<FieldType::OLAP_FIELD_TYPE_DATETIMEV2>::create(builder, |
168 | 0 | opts); |
169 | 0 | } |
170 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
171 | 0 | PageDecoder** decoder) { |
172 | 0 | *decoder = |
173 | 0 | new FrameOfReferencePageDecoder<FieldType::OLAP_FIELD_TYPE_DATETIMEV2>(data, opts); |
174 | 0 | return Status::OK(); |
175 | 0 | } |
176 | | }; |
177 | | |
178 | | template <> |
179 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, FOR_ENCODING, |
180 | | typename CppTypeTraits<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ>::CppType> { |
181 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
182 | 0 | return FrameOfReferencePageBuilder<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ>::create(builder, |
183 | 0 | opts); |
184 | 0 | } |
185 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
186 | 0 | PageDecoder** decoder) { |
187 | 0 | *decoder = |
188 | 0 | new FrameOfReferencePageDecoder<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ>(data, opts); |
189 | 0 | return Status::OK(); |
190 | 0 | } |
191 | | }; |
192 | | |
193 | | template <FieldType type, typename CppType> |
194 | | struct TypeEncodingTraits<type, FOR_ENCODING, CppType, |
195 | | typename std::enable_if<IsIntegral<CppType>::value>::type> { |
196 | 0 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
197 | 0 | return FrameOfReferencePageBuilder<type>::create(builder, opts); |
198 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE7EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE7EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE7EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE7ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE7EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE7ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
199 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
200 | 0 | PageDecoder** decoder) { |
201 | 0 | *decoder = new FrameOfReferencePageDecoder<type>(data, opts); |
202 | 0 | return Status::OK(); |
203 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE7EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE7EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE7EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE7ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE7EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE7ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
204 | | }; |
205 | | |
206 | | template <FieldType type> |
207 | | struct TypeEncodingTraits<type, PREFIX_ENCODING, Slice> { |
208 | 212 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
209 | 212 | return BinaryPrefixPageBuilder::create(builder, opts); |
210 | 212 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 208 | 212 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 209 | 212 | return BinaryPrefixPageBuilder::create(builder, opts); | 210 | 212 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE |
211 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
212 | 203 | PageDecoder** decoder) { |
213 | 203 | *decoder = new BinaryPrefixPageDecoder(data, opts); |
214 | 203 | return Status::OK(); |
215 | 203 | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 212 | 203 | PageDecoder** decoder) { | 213 | 203 | *decoder = new BinaryPrefixPageDecoder(data, opts); | 214 | 203 | return Status::OK(); | 215 | 203 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE |
216 | | }; |
217 | | |
218 | 11 | EncodingInfoResolver::EncodingInfoResolver() { |
219 | | // ===== Phase 1: register every supported (type, encoding) combination exactly once ===== |
220 | | // _register_supported_encoding CHECKs against duplicates; the Phase 2 calls below do not insert into _encoding_map, |
221 | | // so every (type, encoding) used as a default must appear here first. |
222 | | |
223 | | // signed integers |
224 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, BIT_SHUFFLE>(); |
225 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, PLAIN_ENCODING>(); |
226 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, FOR_ENCODING>(); |
227 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, BIT_SHUFFLE>(); |
228 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, PLAIN_ENCODING>(); |
229 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, FOR_ENCODING>(); |
230 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, BIT_SHUFFLE>(); |
231 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, PLAIN_ENCODING>(); |
232 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, FOR_ENCODING>(); |
233 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, BIT_SHUFFLE>(); |
234 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, PLAIN_ENCODING>(); |
235 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, FOR_ENCODING>(); |
236 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, BIT_SHUFFLE>(); |
237 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, PLAIN_ENCODING>(); |
238 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, FOR_ENCODING>(); |
239 | | |
240 | | // unsigned integers |
241 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
242 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
243 | | |
244 | | // FLOAT / DOUBLE |
245 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
246 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_FLOAT, PLAIN_ENCODING>(); |
247 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
248 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DOUBLE, PLAIN_ENCODING>(); |
249 | | |
250 | | // binary types (CHAR/VARCHAR/STRING/JSONB/VARIANT) |
251 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
252 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PLAIN_ENCODING>(); |
253 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PLAIN_ENCODING_V2>(); |
254 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PREFIX_ENCODING>(); |
255 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
256 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PLAIN_ENCODING>(); |
257 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PLAIN_ENCODING_V2>(); |
258 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PREFIX_ENCODING>(); |
259 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
260 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PLAIN_ENCODING>(); |
261 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PLAIN_ENCODING_V2>(); |
262 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PREFIX_ENCODING>(); |
263 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
264 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PLAIN_ENCODING>(); |
265 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PLAIN_ENCODING_V2>(); |
266 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PREFIX_ENCODING>(); |
267 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
268 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PLAIN_ENCODING>(); |
269 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PLAIN_ENCODING_V2>(); |
270 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PREFIX_ENCODING>(); |
271 | | |
272 | | // BOOL |
273 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
274 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, BIT_SHUFFLE>(); |
275 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, PLAIN_ENCODING>(); |
276 | | |
277 | | // date / datetime |
278 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
279 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, PLAIN_ENCODING>(); |
280 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, FOR_ENCODING>(); |
281 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
282 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, PLAIN_ENCODING>(); |
283 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, FOR_ENCODING>(); |
284 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
285 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, PLAIN_ENCODING>(); |
286 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, FOR_ENCODING>(); |
287 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
288 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, PLAIN_ENCODING>(); |
289 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, FOR_ENCODING>(); |
290 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
291 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, PLAIN_ENCODING>(); |
292 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, FOR_ENCODING>(); |
293 | | |
294 | | // decimal |
295 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
296 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL, PLAIN_ENCODING>(); |
297 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
298 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL32, PLAIN_ENCODING>(); |
299 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
300 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL64, PLAIN_ENCODING>(); |
301 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
302 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, PLAIN_ENCODING>(); |
303 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
304 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL256, PLAIN_ENCODING>(); |
305 | | |
306 | | // ip |
307 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
308 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV4, PLAIN_ENCODING>(); |
309 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
310 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV6, PLAIN_ENCODING>(); |
311 | | |
312 | | // aggregate / binary-flavored types |
313 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING>(); |
314 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING_V2>(); |
315 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING>(); |
316 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING_V2>(); |
317 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING>(); |
318 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING_V2>(); |
319 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING>(); |
320 | 11 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING_V2>(); |
321 | | |
322 | | // ===== Phase 2a: V2 defaults (write path, V1/V2 segments) ===== |
323 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_TINYINT, BIT_SHUFFLE>(); |
324 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_SMALLINT, BIT_SHUFFLE>(); |
325 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_INT, BIT_SHUFFLE>(); |
326 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BIGINT, BIT_SHUFFLE>(); |
327 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_LARGEINT, BIT_SHUFFLE>(); |
328 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
329 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
330 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
331 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
332 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
333 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
334 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
335 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
336 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
337 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
338 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
339 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
340 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
341 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
342 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
343 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
344 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
345 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
346 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
347 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
348 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
349 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
350 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING>(); |
351 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING>(); |
352 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING>(); |
353 | 11 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING>(); |
354 | | |
355 | | // ===== Phase 2b: V3 defaults (write path, V3 segments) ===== |
356 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_TINYINT, PLAIN_ENCODING>(); |
357 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_SMALLINT, PLAIN_ENCODING>(); |
358 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_INT, PLAIN_ENCODING>(); |
359 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BIGINT, PLAIN_ENCODING>(); |
360 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_LARGEINT, PLAIN_ENCODING>(); |
361 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
362 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
363 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
364 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
365 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
366 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
367 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
368 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
369 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
370 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
371 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
372 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
373 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
374 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
375 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
376 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
377 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
378 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
379 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
380 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
381 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
382 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
383 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING_V2>(); |
384 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING_V2>(); |
385 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING_V2>(); |
386 | 11 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING_V2>(); |
387 | | |
388 | | // ===== Phase 2c: IndexedColumn (value-seek) defaults ===== |
389 | | // Only the PrimaryKeyIndexBuilder consults this map, and it hardcodes VARCHAR. |
390 | | // Other types were registered historically (since #2308, 2019) for a generic |
391 | | // "any IndexedColumn value-seek caller" use case that never materialized; they |
392 | | // were removed to keep this map honest about what production actually needs. |
393 | 11 | _set_index_column_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PREFIX_ENCODING>(); |
394 | 11 | } |
395 | | |
396 | 10 | EncodingInfoResolver::~EncodingInfoResolver() { |
397 | 810 | for (auto& it : _encoding_map) { |
398 | 810 | delete it.second; |
399 | 810 | } |
400 | 10 | _encoding_map.clear(); |
401 | 10 | } |
402 | | |
403 | 10.5k | EncodingTypePB EncodingInfoResolver::get_v2_default_encoding(FieldType type) const { |
404 | 10.5k | return _lookup(_v2_default_map, type); |
405 | 10.5k | } |
406 | | |
407 | 2.29k | EncodingTypePB EncodingInfoResolver::get_v3_default_encoding(FieldType type) const { |
408 | 2.29k | return _lookup(_v3_default_map, type); |
409 | 2.29k | } |
410 | | |
411 | 110 | EncodingTypePB EncodingInfoResolver::get_index_column_encoding(FieldType type) const { |
412 | 110 | return _lookup(_index_column_encoding_map, type); |
413 | 110 | } |
414 | | |
415 | | Status EncodingInfoResolver::get(FieldType data_type, EncodingTypePB encoding_type, |
416 | 43.4k | const EncodingInfo** out) { |
417 | 43.4k | auto key = std::make_pair(data_type, encoding_type); |
418 | 43.4k | auto it = _encoding_map.find(key); |
419 | 43.4k | if (it == std::end(_encoding_map)) { |
420 | 16 | return Status::InternalError("fail to find valid type encoding, type:{}, encoding:{}", |
421 | 16 | data_type, encoding_type); |
422 | 16 | } |
423 | 43.4k | *out = it->second; |
424 | 43.4k | return Status::OK(); |
425 | 43.4k | } |
426 | | |
427 | | template <typename TraitsClass> |
428 | | EncodingInfo::EncodingInfo(TraitsClass traits) |
429 | 891 | : _create_builder_func(TraitsClass::create_page_builder), |
430 | 891 | _create_decoder_func(TraitsClass::create_page_decoder), |
431 | 891 | _type(TraitsClass::type), |
432 | 891 | _encoding(TraitsClass::encoding) { |
433 | 891 | if (_encoding == BIT_SHUFFLE) { |
434 | 242 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); |
435 | 649 | } else if (_encoding == DICT_ENCODING) { |
436 | 55 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); |
437 | 594 | } else if (_encoding == PLAIN_ENCODING_V2) { |
438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts |
439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. |
440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ |
441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws |
442 | | // at construction time to fail loudly if a future non-Slice registration is added. |
443 | 99 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { |
444 | 99 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); |
445 | 99 | } else { |
446 | 0 | throw Exception(Status::FatalError( |
447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " |
448 | 0 | "non-Slice type {}", |
449 | 0 | int(TraitsClass::type))); |
450 | 0 | } |
451 | 99 | } |
452 | 891 | } _ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 11 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 11 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 11 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 11 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 11 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE4EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 11 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 0 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | 0 | } else { | 446 | 0 | throw Exception(Status::FatalError( | 447 | 0 | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | 0 | "non-Slice type {}", | 449 | 0 | int(TraitsClass::type))); | 450 | 0 | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 0 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 0 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 0 | } | 452 | 11 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 11 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 11 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 11 | _type(TraitsClass::type), | 432 | 11 | _encoding(TraitsClass::encoding) { | 433 | 11 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 11 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 11 | } else if (_encoding == PLAIN_ENCODING_V2) { | 438 | | // Only binary types (Slice) need the predecoder for PLAIN_ENCODING_V2 — it converts | 439 | | // varint-encoded lengths to an offset-array format that downstream Slice decoders expect. | 440 | | // All current (type, PLAIN_ENCODING_V2) registrations are Slice (CHAR/VARCHAR/STRING/ | 441 | | // JSONB/VARIANT/HLL/BITMAP/QUANTILE_STATE/AGG_STATE per storage/types.h). The else throws | 442 | | // at construction time to fail loudly if a future non-Slice registration is added. | 443 | 11 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 11 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); | 445 | | } else { | 446 | | throw Exception(Status::FatalError( | 447 | | "PLAIN_ENCODING_V2 is only supported for Slice (binary) types, but got " | 448 | | "non-Slice type {}", | 449 | | int(TraitsClass::type))); | 450 | | } | 451 | 11 | } | 452 | 11 | } |
|
453 | | |
454 | | #ifdef BE_TEST |
455 | | static EncodingInfoResolver s_encoding_info_resolver; |
456 | | #endif |
457 | | |
458 | 43.4k | Status EncodingInfo::get(FieldType type, EncodingTypePB encoding_type, const EncodingInfo** out) { |
459 | 43.4k | #ifdef BE_TEST |
460 | 43.4k | return s_encoding_info_resolver.get(type, encoding_type, out); |
461 | | #else |
462 | | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
463 | | if (resolver == nullptr) { |
464 | | return Status::InternalError("EncodingInfoResolver not initialized"); |
465 | | } |
466 | | return resolver->get(type, encoding_type, out); |
467 | | #endif |
468 | 43.4k | } |
469 | | |
470 | 10.5k | EncodingTypePB EncodingInfo::get_v2_default_encoding(FieldType type) { |
471 | 10.5k | #ifdef BE_TEST |
472 | 10.5k | return s_encoding_info_resolver.get_v2_default_encoding(type); |
473 | | #else |
474 | | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
475 | | if (resolver == nullptr) { |
476 | | return UNKNOWN_ENCODING; |
477 | | } |
478 | | return resolver->get_v2_default_encoding(type); |
479 | | #endif |
480 | 10.5k | } |
481 | | |
482 | 2.29k | EncodingTypePB EncodingInfo::get_v3_default_encoding(FieldType type) { |
483 | 2.29k | #ifdef BE_TEST |
484 | 2.29k | return s_encoding_info_resolver.get_v3_default_encoding(type); |
485 | | #else |
486 | | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
487 | | if (resolver == nullptr) { |
488 | | return UNKNOWN_ENCODING; |
489 | | } |
490 | | return resolver->get_v3_default_encoding(type); |
491 | | #endif |
492 | 2.29k | } |
493 | | |
494 | 110 | EncodingTypePB EncodingInfo::get_index_column_encoding(FieldType type) { |
495 | 110 | #ifdef BE_TEST |
496 | 110 | return s_encoding_info_resolver.get_index_column_encoding(type); |
497 | | #else |
498 | | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
499 | | if (resolver == nullptr) { |
500 | | return UNKNOWN_ENCODING; |
501 | | } |
502 | | return resolver->get_index_column_encoding(type); |
503 | | #endif |
504 | 110 | } |
505 | | |
506 | | EncodingTypePB EncodingInfo::resolve_default_encoding(TabletStorageFormatPB storage_format, |
507 | 12.6k | const TabletColumn& column) { |
508 | 12.6k | const bool is_v3 = (storage_format == TabletStorageFormatPB::TABLET_STORAGE_FORMAT_V3); |
509 | | |
510 | | // Row store data is already serialized as a single blob. Keep it on plain pages to |
511 | | // avoid introducing dictionary pages for the hidden row store column. |
512 | 12.6k | if (column.is_row_store_column()) { |
513 | 1 | return is_v3 ? PLAIN_ENCODING_V2 : PLAIN_ENCODING; |
514 | 1 | } |
515 | 12.6k | return is_v3 ? get_v3_default_encoding(column.type()) : get_v2_default_encoding(column.type()); |
516 | 12.6k | } |
517 | | |
518 | | Status EncodingInfo::create_page_builder(const PageBuilderOptions& opts, |
519 | 5.38k | std::unique_ptr<PageBuilder>& builder) const { |
520 | 5.38k | PageBuilder* raw_builder = nullptr; |
521 | 5.38k | RETURN_IF_ERROR(_create_builder_func(opts, &raw_builder)); |
522 | 5.38k | builder.reset(raw_builder); |
523 | 5.38k | return Status::OK(); |
524 | 5.38k | } |
525 | | |
526 | | Status EncodingInfo::create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
527 | 2.75k | std::unique_ptr<PageDecoder>& decoder) const { |
528 | 2.75k | PageDecoder* raw_decoder = nullptr; |
529 | 2.75k | RETURN_IF_ERROR(_create_decoder_func(data, opts, &raw_decoder)); |
530 | 2.75k | decoder.reset(raw_decoder); |
531 | 2.75k | return Status::OK(); |
532 | 2.75k | } |
533 | | |
534 | | } // namespace segment_v2 |
535 | | } // namespace doris |