| 93 | |
| 94 | template <typename C_TYPE, typename A_TYPE, SelectionVector::Mode mode> |
| 95 | ArrayPtr SelectionVectorImpl<C_TYPE, A_TYPE, mode>::ToArray() const { |
| 96 | auto data_type = arrow::TypeTraits<A_TYPE>::type_singleton(); |
| 97 | auto array_data = arrow::ArrayData::Make(data_type, num_slots_, {NULLPTR, buffer_}); |
| 98 | return arrow::MakeArray(array_data); |
| 99 | } |
| 100 | |
| 101 | using SelectionVectorInt16 = |
| 102 | SelectionVectorImpl<uint16_t, arrow::UInt16Type, SelectionVector::MODE_UINT16>; |