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

Method DoFinish

cpp/src/arrow/acero/order_by_impl.cc:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 Result<Datum> DoFinish() override {
53 std::unique_lock<std::mutex> lock(mutex_);
54 ARROW_ASSIGN_OR_RAISE(auto table,
55 Table::FromRecordBatches(output_schema_, std::move(batches_)));
56 ARROW_ASSIGN_OR_RAISE(auto indices, SortIndices(table, options_, ctx_));
57 return Take(table, indices, TakeOptions::NoBoundsCheck(), ctx_);
58 }
59
60 std::string ToString() const override { return options_.ToString(); }
61

Callers

nothing calls this directly

Calls 2

TakeFunction · 0.85
NoBoundsCheckFunction · 0.85

Tested by

no test coverage detected