| 130 | |
| 131 | template <TypeKind kind> |
| 132 | static VectorPtr addDictionary( |
| 133 | BufferPtr nulls, |
| 134 | BufferPtr indices, |
| 135 | size_t size, |
| 136 | VectorPtr vector) { |
| 137 | auto pool = vector->pool(); |
| 138 | return std::make_shared< |
| 139 | DictionaryVector<typename KindToFlatVector<kind>::WrapperType>>( |
| 140 | pool, std::move(nulls), size, std::move(vector), std::move(indices)); |
| 141 | } |
| 142 | |
| 143 | // static |
| 144 | VectorPtr BaseVector::wrapInDictionary( |