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

Method Call

cpp/src/arrow/compute/kernels/scalar_boolean.cc:288–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 using Commutative<XorOp>::Call;
287
288 static Status Call(KernelContext* ctx, const ArraySpan& left, const Scalar& right,
289 ExecResult* out) {
290 ArraySpan* out_span = out->array_span_mutable();
291 if (right.is_valid) {
292 checked_cast<const BooleanScalar&>(right).value
293 ? GetBitmap(*out_span, 1).CopyFromInverted(GetBitmap(left, 1))
294 : GetBitmap(*out_span, 1).CopyFrom(GetBitmap(left, 1));
295 }
296 return Status::OK();
297 }
298
299 static Status Call(KernelContext* ctx, const ArraySpan& left, const ArraySpan& right,
300 ExecResult* out) {

Callers

nothing calls this directly

Calls 5

BitmapXorFunction · 0.85
CopyFromInvertedMethod · 0.80
GetBitmapFunction · 0.70
OKFunction · 0.50
CopyFromMethod · 0.45

Tested by

no test coverage detected