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

Method Flush

cpp/src/arrow/compute/light_array_internal.cc:747–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747ExecBatch ExecBatchBuilder::Flush() {
748 ARROW_DCHECK(num_rows() > 0);
749 ExecBatch out({}, num_rows());
750 out.values.resize(values_.size());
751 for (size_t i = 0; i < values_.size(); ++i) {
752 out.values[i] = values_[i].array_data();
753 values_[i].Clear(true);
754 }
755 return out;
756}
757
758} // namespace compute
759} // namespace arrow

Callers 1

TESTFunction · 0.45

Calls 5

resizeMethod · 0.80
array_dataMethod · 0.80
num_rowsFunction · 0.70
sizeMethod · 0.45
ClearMethod · 0.45

Tested by 1

TESTFunction · 0.36