be/src/storage/segment/encoding_info.cpp
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 | 202k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
54 | 202k | return PlainPageBuilder<type>::create(builder, opts); |
55 | 202k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 42.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 42.9k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 42.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 7.01k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 7.01k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 7.01k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 43.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 43.9k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 43.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 99.8k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 99.8k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 99.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 8.95k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 8.95k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 8.95k | } |
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 | 359k | PageDecoder** decoder) { |
58 | 359k | *decoder = new PlainPageDecoder<type>(data, opts); |
59 | 359k | return Status::OK(); |
60 | 359k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 68.6k | PageDecoder** decoder) { | 58 | 68.6k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 68.6k | return Status::OK(); | 60 | 68.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 9.24k | PageDecoder** decoder) { | 58 | 9.24k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 9.24k | return Status::OK(); | 60 | 9.24k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 146k | PageDecoder** decoder) { | 58 | 146k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 146k | return Status::OK(); | 60 | 146k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 120k | PageDecoder** decoder) { | 58 | 120k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 120k | return Status::OK(); | 60 | 120k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 14.6k | PageDecoder** decoder) { | 58 | 14.6k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 14.6k | return Status::OK(); | 60 | 14.6k | } |
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 | 958k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
66 | 958k | return BinaryPlainPageBuilder<type>::create(builder, opts); |
67 | 958k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 206k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 206k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 206k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 730 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 730 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 730 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 396 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 396 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 396 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 749k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 749k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 749k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 229 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 229 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 229 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 918 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 918 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 918 | } |
|
68 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
69 | 316k | PageDecoder** decoder) { |
70 | 316k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); |
71 | 316k | return Status::OK(); |
72 | 316k | } 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 | 221k | PageDecoder** decoder) { | 70 | 221k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 221k | return Status::OK(); | 72 | 221k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 546 | PageDecoder** decoder) { | 70 | 546 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 546 | return Status::OK(); | 72 | 546 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 432 | PageDecoder** decoder) { | 70 | 432 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 432 | return Status::OK(); | 72 | 432 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 93.6k | PageDecoder** decoder) { | 70 | 93.6k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 93.6k | return Status::OK(); | 72 | 93.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 240 | PageDecoder** decoder) { | 70 | 240 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 240 | return Status::OK(); | 72 | 240 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 522 | PageDecoder** decoder) { | 70 | 522 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 522 | return Status::OK(); | 72 | 522 | } |
|
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 | 181k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
90 | 181k | return BinaryPlainPageV2Builder<type>::create(builder, opts); |
91 | 181k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 177k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 177k | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 177k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 585 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 585 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 585 | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 853 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 853 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 853 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 1.08k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 1.08k | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 1.08k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 704 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 704 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 704 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 238 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 238 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 238 | } |
|
92 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
93 | 228k | PageDecoder** decoder) { |
94 | 228k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); |
95 | 228k | return Status::OK(); |
96 | 228k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 213k | PageDecoder** decoder) { | 94 | 213k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 213k | return Status::OK(); | 96 | 213k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 13.7k | PageDecoder** decoder) { | 94 | 13.7k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 13.7k | return Status::OK(); | 96 | 13.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 453 | PageDecoder** decoder) { | 94 | 453 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 453 | return Status::OK(); | 96 | 453 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 670 | PageDecoder** decoder) { | 94 | 670 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 670 | return Status::OK(); | 96 | 670 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 230 | PageDecoder** decoder) { | 94 | 230 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 230 | return Status::OK(); | 96 | 230 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 326 | PageDecoder** decoder) { | 94 | 326 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 326 | return Status::OK(); | 96 | 326 | } |
|
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 | 469k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
103 | 469k | return BitshufflePageBuilder<type>::create(builder, opts); |
104 | 469k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 57.4k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 57.4k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 57.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 10.3k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 10.3k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 10.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 78.1k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 78.1k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 78.1k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 76.1k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 76.1k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 76.1k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 12.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 12.9k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 12.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 71.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 71.9k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 71.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 12.2k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 12.2k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 12.2k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 19.6k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 19.6k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 19.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EhvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ENS_8uint24_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 200 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 200 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 200 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 36.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 36.9k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 36.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 44.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 44.9k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 44.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 282 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 282 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 282 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 7.08k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 7.08k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 7.08k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 188 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 188 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 188 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 9.72k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 9.72k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 9.72k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 12.2k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 12.2k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 12.2k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 16.3k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 16.3k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 16.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EN4wide7integerILm256EiEEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 1.15k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 1.15k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 1.15k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 780 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 780 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 780 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 693 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 693 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 693 | } |
|
105 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
106 | 794k | PageDecoder** decoder) { |
107 | 794k | *decoder = new BitShufflePageDecoder<type>(data, opts); |
108 | 794k | return Status::OK(); |
109 | 794k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 139k | PageDecoder** decoder) { | 107 | 139k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 139k | return Status::OK(); | 109 | 139k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 20.6k | PageDecoder** decoder) { | 107 | 20.6k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 20.6k | return Status::OK(); | 109 | 20.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 157k | PageDecoder** decoder) { | 107 | 157k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 157k | return Status::OK(); | 109 | 157k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 76.3k | PageDecoder** decoder) { | 107 | 76.3k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 76.3k | return Status::OK(); | 109 | 76.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 16.8k | PageDecoder** decoder) { | 107 | 16.8k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 16.8k | return Status::OK(); | 109 | 16.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 93.3k | PageDecoder** decoder) { | 107 | 93.3k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 93.3k | return Status::OK(); | 109 | 93.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 20.0k | PageDecoder** decoder) { | 107 | 20.0k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 20.0k | return Status::OK(); | 109 | 20.0k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 30.3k | PageDecoder** decoder) { | 107 | 30.3k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 30.3k | return Status::OK(); | 109 | 30.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EhvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ENS_8uint24_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 2.12k | PageDecoder** decoder) { | 107 | 2.12k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 2.12k | return Status::OK(); | 109 | 2.12k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 59.6k | PageDecoder** decoder) { | 107 | 59.6k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 59.6k | return Status::OK(); | 109 | 59.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 68.4k | PageDecoder** decoder) { | 107 | 68.4k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 68.4k | return Status::OK(); | 109 | 68.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 2.70k | PageDecoder** decoder) { | 107 | 2.70k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 2.70k | return Status::OK(); | 109 | 2.70k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 14.6k | PageDecoder** decoder) { | 107 | 14.6k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 14.6k | return Status::OK(); | 109 | 14.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.45k | PageDecoder** decoder) { | 107 | 1.45k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.45k | return Status::OK(); | 109 | 1.45k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 15.2k | PageDecoder** decoder) { | 107 | 15.2k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 15.2k | return Status::OK(); | 109 | 15.2k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 40.8k | PageDecoder** decoder) { | 107 | 40.8k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 40.8k | return Status::OK(); | 109 | 40.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 31.1k | PageDecoder** decoder) { | 107 | 31.1k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 31.1k | return Status::OK(); | 109 | 31.1k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EN4wide7integerILm256EiEEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.76k | PageDecoder** decoder) { | 107 | 1.76k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.76k | return Status::OK(); | 109 | 1.76k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.18k | PageDecoder** decoder) { | 107 | 1.18k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.18k | return Status::OK(); | 109 | 1.18k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.14k | PageDecoder** decoder) { | 107 | 1.14k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.14k | return Status::OK(); | 109 | 1.14k | } |
|
110 | | }; |
111 | | |
112 | | template <> |
113 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_BOOL, RLE, uint8_t> { |
114 | 12.6k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
115 | 12.6k | return RlePageBuilder<FieldType::OLAP_FIELD_TYPE_BOOL>::create(builder, opts); |
116 | 12.6k | } |
117 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
118 | 17.7k | PageDecoder** decoder) { |
119 | 17.7k | *decoder = new RlePageDecoder<FieldType::OLAP_FIELD_TYPE_BOOL>(data, opts); |
120 | 17.7k | return Status::OK(); |
121 | 17.7k | } |
122 | | }; |
123 | | |
124 | | template <FieldType type> |
125 | | struct TypeEncodingTraits<type, DICT_ENCODING, Slice> { |
126 | 335k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
127 | 335k | return BinaryDictPageBuilder::create(builder, opts); |
128 | 335k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 18.0k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 18.0k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 18.0k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 189k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 189k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 189k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 113k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 113k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 113k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 8.03k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 8.03k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 8.03k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 5.91k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 5.91k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 5.91k | } |
|
129 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
130 | 409k | PageDecoder** decoder) { |
131 | 409k | *decoder = new BinaryDictPageDecoder(data, opts); |
132 | 409k | return Status::OK(); |
133 | 409k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 36.1k | PageDecoder** decoder) { | 131 | 36.1k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 36.1k | return Status::OK(); | 133 | 36.1k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 235k | PageDecoder** decoder) { | 131 | 235k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 235k | return Status::OK(); | 133 | 235k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 105k | PageDecoder** decoder) { | 131 | 105k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 105k | return Status::OK(); | 133 | 105k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 26.4k | PageDecoder** decoder) { | 131 | 26.4k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 26.4k | return Status::OK(); | 133 | 26.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 6.10k | PageDecoder** decoder) { | 131 | 6.10k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 6.10k | return Status::OK(); | 133 | 6.10k | } |
|
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 | 39.0k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
209 | 39.0k | return BinaryPrefixPageBuilder::create(builder, opts); |
210 | 39.0k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 208 | 39.0k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 209 | 39.0k | return BinaryPrefixPageBuilder::create(builder, opts); | 210 | 39.0k | } |
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 | 4.42M | PageDecoder** decoder) { |
213 | 4.42M | *decoder = new BinaryPrefixPageDecoder(data, opts); |
214 | 4.42M | return Status::OK(); |
215 | 4.42M | } 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 | 4.42M | PageDecoder** decoder) { | 213 | 4.42M | *decoder = new BinaryPrefixPageDecoder(data, opts); | 214 | 4.42M | return Status::OK(); | 215 | 4.42M | } |
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 | 18 | 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 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, BIT_SHUFFLE>(); |
225 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, PLAIN_ENCODING>(); |
226 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TINYINT, FOR_ENCODING>(); |
227 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, BIT_SHUFFLE>(); |
228 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, PLAIN_ENCODING>(); |
229 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_SMALLINT, FOR_ENCODING>(); |
230 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, BIT_SHUFFLE>(); |
231 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, PLAIN_ENCODING>(); |
232 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_INT, FOR_ENCODING>(); |
233 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, BIT_SHUFFLE>(); |
234 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, PLAIN_ENCODING>(); |
235 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BIGINT, FOR_ENCODING>(); |
236 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, BIT_SHUFFLE>(); |
237 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, PLAIN_ENCODING>(); |
238 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_LARGEINT, FOR_ENCODING>(); |
239 | | |
240 | | // unsigned integers |
241 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
242 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
243 | | |
244 | | // FLOAT / DOUBLE |
245 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
246 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_FLOAT, PLAIN_ENCODING>(); |
247 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
248 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DOUBLE, PLAIN_ENCODING>(); |
249 | | |
250 | | // binary types (CHAR/VARCHAR/STRING/JSONB/VARIANT) |
251 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
252 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PLAIN_ENCODING>(); |
253 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PLAIN_ENCODING_V2>(); |
254 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_CHAR, PREFIX_ENCODING>(); |
255 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
256 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PLAIN_ENCODING>(); |
257 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PLAIN_ENCODING_V2>(); |
258 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PREFIX_ENCODING>(); |
259 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
260 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PLAIN_ENCODING>(); |
261 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PLAIN_ENCODING_V2>(); |
262 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_STRING, PREFIX_ENCODING>(); |
263 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
264 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PLAIN_ENCODING>(); |
265 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PLAIN_ENCODING_V2>(); |
266 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_JSONB, PREFIX_ENCODING>(); |
267 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
268 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PLAIN_ENCODING>(); |
269 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PLAIN_ENCODING_V2>(); |
270 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_VARIANT, PREFIX_ENCODING>(); |
271 | | |
272 | | // BOOL |
273 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
274 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, BIT_SHUFFLE>(); |
275 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BOOL, PLAIN_ENCODING>(); |
276 | | |
277 | | // date / datetime |
278 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
279 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, PLAIN_ENCODING>(); |
280 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATE, FOR_ENCODING>(); |
281 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
282 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, PLAIN_ENCODING>(); |
283 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATEV2, FOR_ENCODING>(); |
284 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
285 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, PLAIN_ENCODING>(); |
286 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, FOR_ENCODING>(); |
287 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
288 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, PLAIN_ENCODING>(); |
289 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DATETIME, FOR_ENCODING>(); |
290 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
291 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, PLAIN_ENCODING>(); |
292 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, FOR_ENCODING>(); |
293 | | |
294 | | // decimal |
295 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
296 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL, PLAIN_ENCODING>(); |
297 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
298 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL32, PLAIN_ENCODING>(); |
299 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
300 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL64, PLAIN_ENCODING>(); |
301 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
302 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, PLAIN_ENCODING>(); |
303 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
304 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_DECIMAL256, PLAIN_ENCODING>(); |
305 | | |
306 | | // ip |
307 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
308 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV4, PLAIN_ENCODING>(); |
309 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
310 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_IPV6, PLAIN_ENCODING>(); |
311 | | |
312 | | // aggregate / binary-flavored types |
313 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING>(); |
314 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING_V2>(); |
315 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING>(); |
316 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING_V2>(); |
317 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING>(); |
318 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING_V2>(); |
319 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING>(); |
320 | 18 | _register_supported_encoding<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING_V2>(); |
321 | | |
322 | | // ===== Phase 2a: V2 defaults (write path, V1/V2 segments) ===== |
323 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_TINYINT, BIT_SHUFFLE>(); |
324 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_SMALLINT, BIT_SHUFFLE>(); |
325 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_INT, BIT_SHUFFLE>(); |
326 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BIGINT, BIT_SHUFFLE>(); |
327 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_LARGEINT, BIT_SHUFFLE>(); |
328 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
329 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
330 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
331 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
332 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
333 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
334 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
335 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
336 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
337 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
338 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
339 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
340 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
341 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
342 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
343 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
344 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
345 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
346 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
347 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
348 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
349 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
350 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING>(); |
351 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING>(); |
352 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING>(); |
353 | 18 | _set_v2_default<FieldType::OLAP_FIELD_TYPE_AGG_STATE, PLAIN_ENCODING>(); |
354 | | |
355 | | // ===== Phase 2b: V3 defaults (write path, V3 segments) ===== |
356 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_TINYINT, PLAIN_ENCODING>(); |
357 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_SMALLINT, PLAIN_ENCODING>(); |
358 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_INT, PLAIN_ENCODING>(); |
359 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BIGINT, PLAIN_ENCODING>(); |
360 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_LARGEINT, PLAIN_ENCODING>(); |
361 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT, BIT_SHUFFLE>(); |
362 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT, BIT_SHUFFLE>(); |
363 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_FLOAT, BIT_SHUFFLE>(); |
364 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DOUBLE, BIT_SHUFFLE>(); |
365 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_CHAR, DICT_ENCODING>(); |
366 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_VARCHAR, DICT_ENCODING>(); |
367 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_STRING, DICT_ENCODING>(); |
368 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_JSONB, DICT_ENCODING>(); |
369 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_VARIANT, DICT_ENCODING>(); |
370 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BOOL, RLE>(); |
371 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATE, BIT_SHUFFLE>(); |
372 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATEV2, BIT_SHUFFLE>(); |
373 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATETIMEV2, BIT_SHUFFLE>(); |
374 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DATETIME, BIT_SHUFFLE>(); |
375 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ, BIT_SHUFFLE>(); |
376 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL, BIT_SHUFFLE>(); |
377 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL32, BIT_SHUFFLE>(); |
378 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL64, BIT_SHUFFLE>(); |
379 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL128I, BIT_SHUFFLE>(); |
380 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_DECIMAL256, BIT_SHUFFLE>(); |
381 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_IPV4, BIT_SHUFFLE>(); |
382 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_IPV6, BIT_SHUFFLE>(); |
383 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_HLL, PLAIN_ENCODING_V2>(); |
384 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_BITMAP, PLAIN_ENCODING_V2>(); |
385 | 18 | _set_v3_default<FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE, PLAIN_ENCODING_V2>(); |
386 | 18 | _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 | 18 | _set_index_column_encoding<FieldType::OLAP_FIELD_TYPE_VARCHAR, PREFIX_ENCODING>(); |
394 | 18 | } |
395 | | |
396 | 13 | EncodingInfoResolver::~EncodingInfoResolver() { |
397 | 1.05k | for (auto& it : _encoding_map) { |
398 | 1.05k | delete it.second; |
399 | 1.05k | } |
400 | 13 | _encoding_map.clear(); |
401 | 13 | } |
402 | | |
403 | 568k | EncodingTypePB EncodingInfoResolver::get_v2_default_encoding(FieldType type) const { |
404 | 568k | return _lookup(_v2_default_map, type); |
405 | 568k | } |
406 | | |
407 | 550k | EncodingTypePB EncodingInfoResolver::get_v3_default_encoding(FieldType type) const { |
408 | 550k | return _lookup(_v3_default_map, type); |
409 | 550k | } |
410 | | |
411 | 36.4k | EncodingTypePB EncodingInfoResolver::get_index_column_encoding(FieldType type) const { |
412 | 36.4k | return _lookup(_index_column_encoding_map, type); |
413 | 36.4k | } |
414 | | |
415 | | Status EncodingInfoResolver::get(FieldType data_type, EncodingTypePB encoding_type, |
416 | 24.2M | const EncodingInfo** out) { |
417 | 24.2M | auto key = std::make_pair(data_type, encoding_type); |
418 | 24.2M | auto it = _encoding_map.find(key); |
419 | 24.2M | 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 | 24.2M | *out = it->second; |
424 | 24.2M | return Status::OK(); |
425 | 24.2M | } |
426 | | |
427 | | template <typename TraitsClass> |
428 | | EncodingInfo::EncodingInfo(TraitsClass traits) |
429 | 1.45k | : _create_builder_func(TraitsClass::create_page_builder), |
430 | 1.45k | _create_decoder_func(TraitsClass::create_page_decoder), |
431 | 1.45k | _type(TraitsClass::type), |
432 | 1.45k | _encoding(TraitsClass::encoding) { |
433 | 1.45k | if (_encoding == BIT_SHUFFLE) { |
434 | 396 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); |
435 | 1.06k | } else if (_encoding == DICT_ENCODING) { |
436 | 90 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); |
437 | 972 | } 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 | 162 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { |
444 | 162 | _data_page_pre_decoder = std::make_unique<BinaryPlainPageV2PreDecoder>(); |
445 | 162 | } 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 | 162 | } |
452 | 1.45k | } _ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 18 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 18 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 18 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 18 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 18 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE3EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE4EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE7EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE37ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE38ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 18 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE23ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | } |
_ZN5doris10segment_v212EncodingInfoC2INS0_14EncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8EEEEET_ Line | Count | Source | 429 | 18 | : _create_builder_func(TraitsClass::create_page_builder), | 430 | 18 | _create_decoder_func(TraitsClass::create_page_decoder), | 431 | 18 | _type(TraitsClass::type), | 432 | 18 | _encoding(TraitsClass::encoding) { | 433 | 18 | if (_encoding == BIT_SHUFFLE) { | 434 | 0 | _data_page_pre_decoder = std::make_unique<BitShufflePagePreDecoder>(); | 435 | 18 | } else if (_encoding == DICT_ENCODING) { | 436 | 0 | _data_page_pre_decoder = std::make_unique<BinaryDictPagePreDecoder>(); | 437 | 18 | } 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 | 18 | if constexpr (std::is_same_v<typename TraitsClass::CppType, Slice>) { | 444 | 18 | _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 | 18 | } | 452 | 18 | } |
|
453 | | |
454 | | #ifdef BE_TEST |
455 | | static EncodingInfoResolver s_encoding_info_resolver; |
456 | | #endif |
457 | | |
458 | 24.2M | Status EncodingInfo::get(FieldType type, EncodingTypePB encoding_type, const EncodingInfo** out) { |
459 | | #ifdef BE_TEST |
460 | | return s_encoding_info_resolver.get(type, encoding_type, out); |
461 | | #else |
462 | 24.2M | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
463 | 24.2M | if (resolver == nullptr) { |
464 | 0 | return Status::InternalError("EncodingInfoResolver not initialized"); |
465 | 0 | } |
466 | 24.2M | return resolver->get(type, encoding_type, out); |
467 | 24.2M | #endif |
468 | 24.2M | } |
469 | | |
470 | 557k | EncodingTypePB EncodingInfo::get_v2_default_encoding(FieldType type) { |
471 | | #ifdef BE_TEST |
472 | | return s_encoding_info_resolver.get_v2_default_encoding(type); |
473 | | #else |
474 | 557k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
475 | 557k | if (resolver == nullptr) { |
476 | 0 | return UNKNOWN_ENCODING; |
477 | 0 | } |
478 | 557k | return resolver->get_v2_default_encoding(type); |
479 | 557k | #endif |
480 | 557k | } |
481 | | |
482 | 547k | EncodingTypePB EncodingInfo::get_v3_default_encoding(FieldType type) { |
483 | | #ifdef BE_TEST |
484 | | return s_encoding_info_resolver.get_v3_default_encoding(type); |
485 | | #else |
486 | 547k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
487 | 547k | if (resolver == nullptr) { |
488 | 0 | return UNKNOWN_ENCODING; |
489 | 0 | } |
490 | 547k | return resolver->get_v3_default_encoding(type); |
491 | 547k | #endif |
492 | 547k | } |
493 | | |
494 | 36.6k | EncodingTypePB EncodingInfo::get_index_column_encoding(FieldType type) { |
495 | | #ifdef BE_TEST |
496 | | return s_encoding_info_resolver.get_index_column_encoding(type); |
497 | | #else |
498 | 36.6k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
499 | 36.6k | if (resolver == nullptr) { |
500 | 0 | return UNKNOWN_ENCODING; |
501 | 0 | } |
502 | 36.6k | return resolver->get_index_column_encoding(type); |
503 | 36.6k | #endif |
504 | 36.6k | } |
505 | | |
506 | | EncodingTypePB EncodingInfo::resolve_default_encoding(TabletStorageFormatPB storage_format, |
507 | 1.11M | const TabletColumn& column) { |
508 | 1.11M | 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 | 1.11M | if (column.is_row_store_column()) { |
513 | 1.31k | return is_v3 ? PLAIN_ENCODING_V2 : PLAIN_ENCODING; |
514 | 1.31k | } |
515 | 1.11M | return is_v3 ? get_v3_default_encoding(column.type()) : get_v2_default_encoding(column.type()); |
516 | 1.11M | } |
517 | | |
518 | | Status EncodingInfo::create_page_builder(const PageBuilderOptions& opts, |
519 | 338k | std::unique_ptr<PageBuilder>& builder) const { |
520 | 338k | PageBuilder* raw_builder = nullptr; |
521 | 338k | RETURN_IF_ERROR(_create_builder_func(opts, &raw_builder)); |
522 | 338k | builder.reset(raw_builder); |
523 | 338k | return Status::OK(); |
524 | 338k | } |
525 | | |
526 | | Status EncodingInfo::create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
527 | 389k | std::unique_ptr<PageDecoder>& decoder) const { |
528 | 389k | PageDecoder* raw_decoder = nullptr; |
529 | 389k | RETURN_IF_ERROR(_create_decoder_func(data, opts, &raw_decoder)); |
530 | 389k | decoder.reset(raw_decoder); |
531 | 389k | return Status::OK(); |
532 | 389k | } |
533 | | |
534 | | } // namespace segment_v2 |
535 | | } // namespace doris |