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

Function StringBoolTransform

cpp/src/arrow/compute/kernels/scalar_string_ascii.cc:1207–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205// length
1206template <typename Type>
1207void StringBoolTransform(KernelContext* ctx, const ExecSpan& batch,
1208 StrToBoolTransformFunc transform, ExecResult* out) {
1209 using offset_type = typename Type::offset_type;
1210 const ArraySpan& input = batch[0].array;
1211 ArraySpan* out_arr = out->array_span_mutable();
1212 if (input.length > 0) {
1213 transform(reinterpret_cast<const offset_type*>(input.buffers[1].data) + input.offset,
1214 input.buffers[2].data, input.length, out_arr->offset,
1215 out_arr->buffers[1].data);
1216 }
1217}
1218
1219using MatchSubstringState = OptionsWrapper<MatchSubstringOptions>;
1220

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected