/root/doris/be/src/runtime/collection_value.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 "runtime/collection_value.h" | 
| 19 |  |  | 
| 20 |  | #include <string.h> | 
| 21 |  |  | 
| 22 |  | namespace doris { | 
| 23 |  |  | 
| 24 | 0 | void CollectionValue::shallow_copy(const CollectionValue* value) { | 
| 25 | 0 |     _length = value->_length; | 
| 26 | 0 |     _null_signs = value->_null_signs; | 
| 27 | 0 |     _data = value->_data; | 
| 28 | 0 |     _has_null = value->_has_null; | 
| 29 | 0 | } | 
| 30 |  |  | 
| 31 | 15 | void CollectionValue::copy_null_signs(const CollectionValue* other) { | 
| 32 | 15 |     if (other->_has_null) { | 
| 33 | 15 |         memcpy(_null_signs, other->_null_signs, other->size()); | 
| 34 | 15 |     } else { | 
| 35 | 0 |         _null_signs = nullptr; | 
| 36 | 0 |     } | 
| 37 | 15 | } | 
| 38 |  |  | 
| 39 |  | } // namespace doris |