| 1403 | // See "Numeric" above for description of the generator functor |
| 1404 | template <template <typename...> class Generator, typename Type0, typename... Args> |
| 1405 | auto GenerateDecimal(detail::GetTypeId get_id) { |
| 1406 | using KernelType = decltype(&Generator<Type0, Decimal256Type, Args...>::Exec); |
| 1407 | switch (get_id.id) { |
| 1408 | case Type::DECIMAL32: |
| 1409 | return Generator<Type0, Decimal32Type, Args...>::Exec; |
| 1410 | case Type::DECIMAL64: |
| 1411 | return Generator<Type0, Decimal64Type, Args...>::Exec; |
| 1412 | case Type::DECIMAL128: |
| 1413 | return Generator<Type0, Decimal128Type, Args...>::Exec; |
| 1414 | case Type::DECIMAL256: |
| 1415 | return Generator<Type0, Decimal256Type, Args...>::Exec; |
| 1416 | default: |
| 1417 | ARROW_DCHECK(false); |
| 1418 | return KernelType(nullptr); |
| 1419 | } |
| 1420 | } |
| 1421 | |
| 1422 | // END of kernel generator-dispatchers |
| 1423 | // ---------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected