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

Function GenerateSignedInteger

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

Source from the content-addressed store, hash-verified

1255// See "Numeric" above for description of the generator functor
1256template <template <typename...> class Generator, typename Type0, typename... Args>
1257ArrayKernelExec GenerateSignedInteger(detail::GetTypeId get_id) {
1258 switch (get_id.id) {
1259 case Type::INT8:
1260 return Generator<Type0, Int8Type, Args...>::Exec;
1261 case Type::INT16:
1262 return Generator<Type0, Int16Type, Args...>::Exec;
1263 case Type::INT32:
1264 return Generator<Type0, Int32Type, Args...>::Exec;
1265 case Type::INT64:
1266 return Generator<Type0, Int64Type, Args...>::Exec;
1267 default:
1268 ARROW_DCHECK(false);
1269 return nullptr;
1270 }
1271}
1272
1273// Generate a kernel given a templated functor. Only a single template is
1274// instantiated for each bit width, and the functor is expected to treat types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected