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

Function AddUtf8StringSlice

cpp/src/arrow/compute/kernels/scalar_string_utf8.cc:1349–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347 {"strings"}, "SliceOptions", /*options_required=*/true);
1348
1349void AddUtf8StringSlice(FunctionRegistry* registry) {
1350 auto func = std::make_shared<ScalarFunction>("utf8_slice_codeunits", Arity::Unary(),
1351 utf8_slice_codeunits_doc);
1352 for (const auto& ty : StringTypes()) {
1353 auto exec = GenerateTypeAgnosticVarBinaryBase<SliceCodeunits>(ty);
1354 DCHECK_OK(
1355 func->AddKernel({ty}, ty, std::move(exec), SliceCodeunitsTransform::State::Init));
1356 }
1357 DCHECK_OK(registry->AddFunction(std::move(func)));
1358}
1359
1360// ----------------------------------------------------------------------
1361// Split by whitespace

Callers 1

RegisterScalarStringUtf8Function · 0.85

Calls 3

UnaryFunction · 0.85
AddKernelMethod · 0.45
AddFunctionMethod · 0.45

Tested by

no test coverage detected