| 64 | class CustomJoinBridge : public JoinBridge { |
| 65 | public: |
| 66 | void setNumRows(std::optional<int32_t> numRows) { |
| 67 | std::vector<ContinuePromise> promises; |
| 68 | { |
| 69 | std::lock_guard<std::mutex> l(mutex_); |
| 70 | BOLT_CHECK(!numRows_.has_value(), "setNumRows may be called only once"); |
| 71 | numRows_ = numRows; |
| 72 | promises = std::move(promises_); |
| 73 | } |
| 74 | notify(std::move(promises)); |
| 75 | } |
| 76 | |
| 77 | std::optional<int32_t> numRowsOrFuture(ContinueFuture* future) { |
| 78 | std::lock_guard<std::mutex> l(mutex_); |
no test coverage detected