@@ -173,49 +173,25 @@ class ColumnDecimal final : public COWPtrHelper<ColumnVectorHelper, ColumnDecima
173
173
String &) const override ;
174
174
const char * deserializeAndInsertFromArena (const char * pos, const TiDB::TiDBCollatorPtr &) override ;
175
175
176
- void countSerializeByteSizeForCmp (PaddedPODArray<size_t > & byte_size, const TiDB::TiDBCollatorPtr &) const override
177
- {
178
- countSerializeByteSizeImpl<true >(byte_size);
179
- }
180
- void countSerializeByteSize (PaddedPODArray<size_t > & byte_size) const override
181
- {
182
- countSerializeByteSizeImpl<false >(byte_size);
183
- }
176
+ void countSerializeByteSizeForCmp (PaddedPODArray<size_t > & byte_size, const TiDB::TiDBCollatorPtr &) const override ;
177
+ void countSerializeByteSize (PaddedPODArray<size_t > & byte_size) const override ;
184
178
185
179
void countSerializeByteSizeForCmpColumnArray (
186
180
PaddedPODArray<size_t > & byte_size,
187
181
const IColumn::Offsets & array_offsets,
188
- const TiDB::TiDBCollatorPtr &) const override
189
- {
190
- countSerializeByteSizeForColumnArrayImpl<true >(byte_size, array_offsets);
191
- }
182
+ const TiDB::TiDBCollatorPtr &) const override ;
192
183
void countSerializeByteSizeForColumnArray (
193
184
PaddedPODArray<size_t > & byte_size,
194
- const IColumn::Offsets & array_offsets) const override
195
- {
196
- countSerializeByteSizeForColumnArrayImpl<false >(byte_size, array_offsets);
197
- }
185
+ const IColumn::Offsets & array_offsets) const override ;
198
186
199
187
void serializeToPosForCmp (
200
188
PaddedPODArray<char *> & pos,
201
189
size_t start,
202
190
size_t length,
203
191
bool has_null,
204
192
const TiDB::TiDBCollatorPtr &,
205
- String *) const override
206
- {
207
- if (has_null)
208
- serializeToPosImpl</* has_null=*/ true , /* for_compare=*/ true >(pos, start, length);
209
- else
210
- serializeToPosImpl</* has_null=*/ false , /* for_compare=*/ true >(pos, start, length);
211
- }
212
- void serializeToPos (PaddedPODArray<char *> & pos, size_t start, size_t length, bool has_null) const override
213
- {
214
- if (has_null)
215
- serializeToPosImpl</* has_null=*/ true , /* for_compare=*/ false >(pos, start, length);
216
- else
217
- serializeToPosImpl</* has_null=*/ false , /* for_compare=*/ false >(pos, start, length);
218
- }
193
+ String *) const override ;
194
+ void serializeToPos (PaddedPODArray<char *> & pos, size_t start, size_t length, bool has_null) const override ;
219
195
220
196
void serializeToPosForCmpColumnArray (
221
197
PaddedPODArray<char *> & pos,
@@ -224,65 +200,25 @@ class ColumnDecimal final : public COWPtrHelper<ColumnVectorHelper, ColumnDecima
224
200
bool has_null,
225
201
const IColumn::Offsets & array_offsets,
226
202
const TiDB::TiDBCollatorPtr &,
227
- String *) const override
228
- {
229
- if (has_null)
230
- serializeToPosForColumnArrayImpl</* has_null=*/ true , /* for_compare=*/ true >(
231
- pos,
232
- start,
233
- length,
234
- array_offsets);
235
- else
236
- serializeToPosForColumnArrayImpl</* has_null=*/ false , /* for_compare=*/ true >(
237
- pos,
238
- start,
239
- length,
240
- array_offsets);
241
- }
203
+ String *) const override ;
242
204
void serializeToPosForColumnArray (
243
205
PaddedPODArray<char *> & pos,
244
206
size_t start,
245
207
size_t length,
246
208
bool has_null,
247
- const IColumn::Offsets & array_offsets) const override
248
- {
249
- if (has_null)
250
- serializeToPosForColumnArrayImpl</* has_null=*/ true , /* for_compare=*/ false >(
251
- pos,
252
- start,
253
- length,
254
- array_offsets);
255
- else
256
- serializeToPosForColumnArrayImpl</* has_null=*/ false , /* for_compare=*/ false >(
257
- pos,
258
- start,
259
- length,
260
- array_offsets);
261
- }
209
+ const IColumn::Offsets & array_offsets) const override ;
262
210
263
- void deserializeForCmpAndInsertFromPos (PaddedPODArray<char *> & pos, bool use_nt_align_buffer) override
264
- {
265
- deserializeAndInsertFromPosImpl<true >(pos, use_nt_align_buffer);
266
- }
267
- void deserializeAndInsertFromPos (PaddedPODArray<char *> & pos, bool use_nt_align_buffer) override
268
- {
269
- deserializeAndInsertFromPosImpl<false >(pos, use_nt_align_buffer);
270
- }
211
+ void deserializeForCmpAndInsertFromPos (PaddedPODArray<char *> & pos, bool use_nt_align_buffer) override ;
212
+ void deserializeAndInsertFromPos (PaddedPODArray<char *> & pos, bool use_nt_align_buffer) override ;
271
213
272
214
void deserializeForCmpAndInsertFromPosColumnArray (
273
215
PaddedPODArray<char *> & pos,
274
216
const IColumn::Offsets & array_offsets,
275
- bool use_nt_align_buffer) override
276
- {
277
- deserializeAndInsertFromPosForColumnArrayImpl<true >(pos, array_offsets, use_nt_align_buffer);
278
- }
217
+ bool use_nt_align_buffer) override ;
279
218
void deserializeAndInsertFromPosForColumnArray (
280
219
PaddedPODArray<char *> & pos,
281
220
const IColumn::Offsets & array_offsets,
282
- bool use_nt_align_buffer) override
283
- {
284
- deserializeAndInsertFromPosForColumnArrayImpl<false >(pos, array_offsets, use_nt_align_buffer);
285
- }
221
+ bool use_nt_align_buffer) override ;
286
222
287
223
void flushNTAlignBuffer () override ;
288
224
0 commit comments