MCPcopy Create free account
hub / github.com/apache/arrow / GenerateTemporal

Function GenerateTemporal

cpp/src/arrow/compute/kernels/codegen_internal.h:1381–1399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379// See "Numeric" above for description of the generator functor
1380template <template <typename...> class Generator, typename Type0, typename... Args>
1381ArrayKernelExec GenerateTemporal(detail::GetTypeId get_id) {
1382 switch (get_id.id) {
1383 case Type::DATE32:
1384 return Generator<Type0, Date32Type, Args...>::Exec;
1385 case Type::DATE64:
1386 return Generator<Type0, Date64Type, Args...>::Exec;
1387 case Type::DURATION:
1388 return Generator<Type0, DurationType, Args...>::Exec;
1389 case Type::TIME32:
1390 return Generator<Type0, Time32Type, Args...>::Exec;
1391 case Type::TIME64:
1392 return Generator<Type0, Time64Type, Args...>::Exec;
1393 case Type::TIMESTAMP:
1394 return Generator<Type0, TimestampType, Args...>::Exec;
1395 default:
1396 ARROW_DCHECK(false);
1397 return nullptr;
1398 }
1399}
1400
1401// Generate a kernel given a templated functor for decimal types
1402//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected