MCPcopy Create free account
hub / github.com/bytedance/bolt / numRowsOrFuture

Method numRowsOrFuture

bolt/exec/tests/CustomJoinTest.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 std::optional<int32_t> numRowsOrFuture(ContinueFuture* future) {
78 std::lock_guard<std::mutex> l(mutex_);
79 BOLT_CHECK(!cancelled_, "Getting data after the build side is aborted");
80 if (numRows_.has_value()) {
81 return numRows_;
82 }
83 promises_.emplace_back("CustomJoinBridge::numRowsOrFuture");
84 *future = promises_.back().getSemiFuture();
85 return std::nullopt;
86 }
87
88 private:
89 std::optional<int32_t> numRows_;

Callers 1

isBlockedMethod · 0.80

Calls 2

has_valueMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected