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

Function ToExecBatch

cpp/src/arrow/compute/exec.h:410–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 }
409
410 ExecBatch ToExecBatch() const {
411 ExecBatch result;
412 result.length = this->length;
413 for (const ExecValue& value : this->values) {
414 if (value.is_array()) {
415 result.values.push_back(value.array.ToArrayData());
416 } else {
417 result.values.push_back(value.scalar->GetSharedPtr());
418 }
419 }
420 return result;
421 }
422
423 int64_t length = 0;
424 std::vector<ExecValue> values;

Callers

nothing calls this directly

Calls 3

is_arrayMethod · 0.80
push_backMethod · 0.80
ToArrayDataMethod · 0.80

Tested by

no test coverage detected