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 | 159k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
54 | 159k | return PlainPageBuilder<type>::create(builder, opts); |
55 | 159k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 26.2k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 26.2k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 26.2k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 7.35k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 7.35k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 7.35k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 44.4k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 44.4k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 44.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 71.4k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 71.4k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 71.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 53 | 9.61k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 54 | 9.61k | return PlainPageBuilder<type>::create(builder, opts); | 55 | 9.61k | } |
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 | 287k | PageDecoder** decoder) { |
58 | 287k | *decoder = new PlainPageDecoder<type>(data, opts); |
59 | 287k | return Status::OK(); |
60 | 287k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE2EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 57.7k | PageDecoder** decoder) { | 58 | 57.7k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 57.7k | return Status::OK(); | 60 | 57.7k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE2EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 16.1k | PageDecoder** decoder) { | 58 | 16.1k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 16.1k | return Status::OK(); | 60 | 16.1k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE2EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 127k | PageDecoder** decoder) { | 58 | 127k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 127k | return Status::OK(); | 60 | 127k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE2ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 71.9k | PageDecoder** decoder) { | 58 | 71.9k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 71.9k | return Status::OK(); | 60 | 71.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE2EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 57 | 14.4k | PageDecoder** decoder) { | 58 | 14.4k | *decoder = new PlainPageDecoder<type>(data, opts); | 59 | 14.4k | return Status::OK(); | 60 | 14.4k | } |
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 | 873k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
66 | 873k | return BinaryPlainPageBuilder<type>::create(builder, opts); |
67 | 873k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 231k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 231k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 231k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 851 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 851 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 851 | } |
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 | 688 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 688 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 688 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 638k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 638k | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 638k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 528 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 528 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 528 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 65 | 942 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 66 | 942 | return BinaryPlainPageBuilder<type>::create(builder, opts); | 67 | 942 | } |
|
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 | 266k | PageDecoder** decoder) { | 70 | 266k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 266k | return Status::OK(); | 72 | 266k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 9.71k | PageDecoder** decoder) { | 70 | 9.71k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 9.71k | return Status::OK(); | 72 | 9.71k | } |
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 | 613 | PageDecoder** decoder) { | 70 | 613 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 613 | return Status::OK(); | 72 | 613 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 38.8k | PageDecoder** decoder) { | 70 | 38.8k | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 38.8k | return Status::OK(); | 72 | 38.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 448 | PageDecoder** decoder) { | 70 | 448 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 448 | return Status::OK(); | 72 | 448 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE2ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 69 | 476 | PageDecoder** decoder) { | 70 | 476 | *decoder = new BinaryPlainPageDecoder<type>(data, opts); | 71 | 476 | return Status::OK(); | 72 | 476 | } |
|
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 | 77.1k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
90 | 77.1k | return BinaryPlainPageV2Builder<type>::create(builder, opts); |
91 | 77.1k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 74.8k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 74.8k | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 74.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 468 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 468 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 468 | } |
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 | 513 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 513 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 513 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 724 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 724 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 724 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 397 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 397 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 397 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 89 | 254 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 90 | 254 | return BinaryPlainPageV2Builder<type>::create(builder, opts); | 91 | 254 | } |
|
92 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
93 | 111k | PageDecoder** decoder) { |
94 | 111k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); |
95 | 111k | return Status::OK(); |
96 | 111k | } 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 | 106k | PageDecoder** decoder) { | 94 | 106k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 106k | return Status::OK(); | 96 | 106k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 4.77k | PageDecoder** decoder) { | 94 | 4.77k | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 4.77k | return Status::OK(); | 96 | 4.77k | } |
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 | 198 | PageDecoder** decoder) { | 94 | 198 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 198 | return Status::OK(); | 96 | 198 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE25ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 400 | PageDecoder** decoder) { | 94 | 400 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 400 | return Status::OK(); | 96 | 400 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE27ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 6 | PageDecoder** decoder) { | 94 | 6 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 6 | return Status::OK(); | 96 | 6 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE36ELNS0_14EncodingTypePBE8ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 93 | 324 | PageDecoder** decoder) { | 94 | 324 | *decoder = new BinaryPlainPageV2Decoder<type>(data, opts); | 95 | 324 | return Status::OK(); | 96 | 324 | } |
|
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 | 437k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
103 | 437k | return BitshufflePageBuilder<type>::create(builder, opts); |
104 | 437k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 54.0k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 54.0k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 54.0k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 9.36k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 9.36k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 9.36k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 56.6k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 56.6k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 56.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 89.6k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 89.6k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 89.6k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 11.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 11.9k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 11.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 64.6k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 64.6k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 64.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 11.7k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 11.7k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 11.7k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 14.1k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 14.1k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 14.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE24ELNS0_14EncodingTypePBE6EhvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE14ELNS0_14EncodingTypePBE6ENS_8uint24_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 184 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 184 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 184 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 36.3k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 36.3k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 36.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 41.3k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 41.3k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 41.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 284 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 284 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 284 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 7.07k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 7.07k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 7.07k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 192 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 192 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 192 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 9.51k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 9.51k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 9.51k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 11.8k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 11.8k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 11.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 15.7k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 15.7k | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 15.7k | } |
_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 | 787 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 787 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 787 | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 102 | 701 | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 103 | 701 | return BitshufflePageBuilder<type>::create(builder, opts); | 104 | 701 | } |
|
105 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
106 | 733k | PageDecoder** decoder) { |
107 | 733k | *decoder = new BitShufflePageDecoder<type>(data, opts); |
108 | 733k | return Status::OK(); |
109 | 733k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE1ELNS0_14EncodingTypePBE6EavE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 91.4k | PageDecoder** decoder) { | 107 | 91.4k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 91.4k | return Status::OK(); | 109 | 91.4k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE3ELNS0_14EncodingTypePBE6EsvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 12.2k | PageDecoder** decoder) { | 107 | 12.2k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 12.2k | return Status::OK(); | 109 | 12.2k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE5ELNS0_14EncodingTypePBE6EivE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 147k | PageDecoder** decoder) { | 107 | 147k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 147k | return Status::OK(); | 109 | 147k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE7ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 106k | PageDecoder** decoder) { | 107 | 106k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 106k | return Status::OK(); | 109 | 106k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE9ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 16.0k | PageDecoder** decoder) { | 107 | 16.0k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 16.0k | return Status::OK(); | 109 | 16.0k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE8ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 83.4k | PageDecoder** decoder) { | 107 | 83.4k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 83.4k | return Status::OK(); | 109 | 83.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE6ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE10ELNS0_14EncodingTypePBE6EfvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 18.7k | PageDecoder** decoder) { | 107 | 18.7k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 18.7k | return Status::OK(); | 109 | 18.7k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE11ELNS0_14EncodingTypePBE6EdvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 29.4k | PageDecoder** decoder) { | 107 | 29.4k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 29.4k | return Status::OK(); | 109 | 29.4k | } |
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 | 1.74k | PageDecoder** decoder) { | 107 | 1.74k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.74k | return Status::OK(); | 109 | 1.74k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE28ELNS0_14EncodingTypePBE6EjvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 57.9k | PageDecoder** decoder) { | 107 | 57.9k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 57.9k | return Status::OK(); | 109 | 57.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE29ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 63.5k | PageDecoder** decoder) { | 107 | 63.5k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 63.5k | return Status::OK(); | 109 | 63.5k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE15ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 2.30k | PageDecoder** decoder) { | 107 | 2.30k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 2.30k | return Status::OK(); | 109 | 2.30k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE40ELNS0_14EncodingTypePBE6EmvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 14.5k | PageDecoder** decoder) { | 107 | 14.5k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 14.5k | return Status::OK(); | 109 | 14.5k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE16ELNS0_14EncodingTypePBE6ENS_11decimal12_tEvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.44k | PageDecoder** decoder) { | 107 | 1.44k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.44k | return Status::OK(); | 109 | 1.44k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE31ELNS0_14EncodingTypePBE6EivE19create_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_9FieldTypeE32ELNS0_14EncodingTypePBE6ElvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 39.3k | PageDecoder** decoder) { | 107 | 39.3k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 39.3k | return Status::OK(); | 109 | 39.3k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE33ELNS0_14EncodingTypePBE6EnvE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 28.7k | PageDecoder** decoder) { | 107 | 28.7k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 28.7k | return Status::OK(); | 109 | 28.7k | } |
_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.20k | PageDecoder** decoder) { | 107 | 1.20k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.20k | return Status::OK(); | 109 | 1.20k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE39ELNS0_14EncodingTypePBE6EovE19create_page_decoderERKNS_5SliceERKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 106 | 1.16k | PageDecoder** decoder) { | 107 | 1.16k | *decoder = new BitShufflePageDecoder<type>(data, opts); | 108 | 1.16k | return Status::OK(); | 109 | 1.16k | } |
|
110 | | }; |
111 | | |
112 | | template <> |
113 | | struct TypeEncodingTraits<FieldType::OLAP_FIELD_TYPE_BOOL, RLE, uint8_t> { |
114 | 12.9k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
115 | 12.9k | return RlePageBuilder<FieldType::OLAP_FIELD_TYPE_BOOL>::create(builder, opts); |
116 | 12.9k | } |
117 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
118 | 18.5k | PageDecoder** decoder) { |
119 | 18.5k | *decoder = new RlePageDecoder<FieldType::OLAP_FIELD_TYPE_BOOL>(data, opts); |
120 | 18.5k | return Status::OK(); |
121 | 18.5k | } |
122 | | }; |
123 | | |
124 | | template <FieldType type> |
125 | | struct TypeEncodingTraits<type, DICT_ENCODING, Slice> { |
126 | 274k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
127 | 274k | return BinaryDictPageBuilder::create(builder, opts); |
128 | 274k | } _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 17.7k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 17.7k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 17.7k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 149k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 149k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 149k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 93.8k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 93.8k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 93.8k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 7.54k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 7.54k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 7.54k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 126 | 5.96k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 127 | 5.96k | return BinaryDictPageBuilder::create(builder, opts); | 128 | 5.96k | } |
|
129 | | static Status create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
130 | 362k | PageDecoder** decoder) { |
131 | 362k | *decoder = new BinaryDictPageDecoder(data, opts); |
132 | 362k | return Status::OK(); |
133 | 362k | } _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 | 190k | PageDecoder** decoder) { | 131 | 190k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 190k | return Status::OK(); | 133 | 190k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE26ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 104k | PageDecoder** decoder) { | 131 | 104k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 104k | return Status::OK(); | 133 | 104k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE34ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 24.9k | PageDecoder** decoder) { | 131 | 24.9k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 24.9k | return Status::OK(); | 133 | 24.9k | } |
_ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE35ELNS0_14EncodingTypePBE5ENS_5SliceEvE19create_page_decoderERKS4_RKNS0_18PageDecoderOptionsEPPNS0_11PageDecoderE Line | Count | Source | 130 | 6.08k | PageDecoder** decoder) { | 131 | 6.08k | *decoder = new BinaryDictPageDecoder(data, opts); | 132 | 6.08k | return Status::OK(); | 133 | 6.08k | } |
|
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 | 25.5k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { |
209 | 25.5k | return BinaryPrefixPageBuilder::create(builder, opts); |
210 | 25.5k | } Unexecuted instantiation: _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE13ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE _ZN5doris10segment_v218TypeEncodingTraitsILNS_9FieldTypeE17ELNS0_14EncodingTypePBE3ENS_5SliceEvE19create_page_builderERKNS0_18PageBuilderOptionsEPPNS0_11PageBuilderE Line | Count | Source | 208 | 25.5k | static Status create_page_builder(const PageBuilderOptions& opts, PageBuilder** builder) { | 209 | 25.5k | return BinaryPrefixPageBuilder::create(builder, opts); | 210 | 25.5k | } |
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.18M | PageDecoder** decoder) { |
213 | 4.18M | *decoder = new BinaryPrefixPageDecoder(data, opts); |
214 | 4.18M | return Status::OK(); |
215 | 4.18M | } 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.18M | PageDecoder** decoder) { | 213 | 4.18M | *decoder = new BinaryPrefixPageDecoder(data, opts); | 214 | 4.18M | return Status::OK(); | 215 | 4.18M | } |
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 | 626k | EncodingTypePB EncodingInfoResolver::get_v2_default_encoding(FieldType type) const { |
404 | 626k | return _lookup(_v2_default_map, type); |
405 | 626k | } |
406 | | |
407 | 348k | EncodingTypePB EncodingInfoResolver::get_v3_default_encoding(FieldType type) const { |
408 | 348k | return _lookup(_v3_default_map, type); |
409 | 348k | } |
410 | | |
411 | 23.7k | EncodingTypePB EncodingInfoResolver::get_index_column_encoding(FieldType type) const { |
412 | 23.7k | return _lookup(_index_column_encoding_map, type); |
413 | 23.7k | } |
414 | | |
415 | | Status EncodingInfoResolver::get(FieldType data_type, EncodingTypePB encoding_type, |
416 | 8.43M | const EncodingInfo** out) { |
417 | 8.43M | auto key = std::make_pair(data_type, encoding_type); |
418 | 8.43M | auto it = _encoding_map.find(key); |
419 | 8.43M | 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 | 8.43M | *out = it->second; |
424 | 8.43M | return Status::OK(); |
425 | 8.43M | } |
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 | 8.40M | 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 | 8.40M | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
463 | 8.40M | if (resolver == nullptr) { |
464 | 0 | return Status::InternalError("EncodingInfoResolver not initialized"); |
465 | 0 | } |
466 | 8.40M | return resolver->get(type, encoding_type, out); |
467 | 8.40M | #endif |
468 | 8.40M | } |
469 | | |
470 | 615k | 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 | 615k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
475 | 615k | if (resolver == nullptr) { |
476 | 0 | return UNKNOWN_ENCODING; |
477 | 0 | } |
478 | 615k | return resolver->get_v2_default_encoding(type); |
479 | 615k | #endif |
480 | 615k | } |
481 | | |
482 | 346k | 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 | 346k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
487 | 346k | if (resolver == nullptr) { |
488 | 0 | return UNKNOWN_ENCODING; |
489 | 0 | } |
490 | 346k | return resolver->get_v3_default_encoding(type); |
491 | 346k | #endif |
492 | 346k | } |
493 | | |
494 | 23.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 | 23.6k | auto* resolver = ExecEnv::GetInstance()->get_encoding_info_resolver(); |
499 | 23.6k | if (resolver == nullptr) { |
500 | 0 | return UNKNOWN_ENCODING; |
501 | 0 | } |
502 | 23.6k | return resolver->get_index_column_encoding(type); |
503 | 23.6k | #endif |
504 | 23.6k | } |
505 | | |
506 | | EncodingTypePB EncodingInfo::resolve_default_encoding(TabletStorageFormatPB storage_format, |
507 | 975k | const TabletColumn& column) { |
508 | 975k | 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 | 975k | if (column.is_row_store_column()) { |
513 | 1.31k | return is_v3 ? PLAIN_ENCODING_V2 : PLAIN_ENCODING; |
514 | 1.31k | } |
515 | 974k | return is_v3 ? get_v3_default_encoding(column.type()) : get_v2_default_encoding(column.type()); |
516 | 975k | } |
517 | | |
518 | | Status EncodingInfo::create_page_builder(const PageBuilderOptions& opts, |
519 | 277k | std::unique_ptr<PageBuilder>& builder) const { |
520 | 277k | PageBuilder* raw_builder = nullptr; |
521 | 277k | RETURN_IF_ERROR(_create_builder_func(opts, &raw_builder)); |
522 | 277k | builder.reset(raw_builder); |
523 | 277k | return Status::OK(); |
524 | 277k | } |
525 | | |
526 | | Status EncodingInfo::create_page_decoder(const Slice& data, const PageDecoderOptions& opts, |
527 | 342k | std::unique_ptr<PageDecoder>& decoder) const { |
528 | 342k | PageDecoder* raw_decoder = nullptr; |
529 | 342k | RETURN_IF_ERROR(_create_decoder_func(data, opts, &raw_decoder)); |
530 | 342k | decoder.reset(raw_decoder); |
531 | 342k | return Status::OK(); |
532 | 342k | } |
533 | | |
534 | | } // namespace segment_v2 |
535 | | } // namespace doris |