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

Function ExecCopyArraySpan

cpp/src/arrow/compute/exec_test.cc:899–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899Status ExecCopyArraySpan(KernelContext*, const ExecSpan& batch, ExecResult* out) {
900 DCHECK_EQ(1, batch.num_values());
901 int value_size = batch[0].type()->byte_width();
902 const ArraySpan& arg0 = batch[0].array;
903 ArraySpan* out_arr = out->array_span_mutable();
904 uint8_t* dst = out_arr->buffers[1].data + out_arr->offset * value_size;
905 const uint8_t* src = arg0.buffers[1].data + arg0.offset * value_size;
906 std::memcpy(dst, src, batch.length * value_size);
907 return Status::OK();
908}
909
910Status ExecComputedBitmap(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
911 // Propagate nulls not used. Check that the out bitmap isn't the same already

Callers 1

ExecComputedBitmapFunction · 0.85

Calls 4

OKFunction · 0.50
num_valuesMethod · 0.45
byte_widthMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected