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

Method dataOrFuture

bolt/exec/NestedLoopJoinBuild.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46std::optional<std::vector<RowVectorPtr>> NestedLoopJoinBridge::dataOrFuture(
47 ContinueFuture* future) {
48 std::lock_guard<std::mutex> l(mutex_);
49 BOLT_CHECK(!cancelled_, "Getting data after the build side is aborted");
50 if (buildVectors_.has_value()) {
51 return buildVectors_;
52 }
53 promises_.emplace_back("NestedLoopJoinBridge::tableOrFuture");
54 *future = promises_.back().getSemiFuture();
55 return std::nullopt;
56}
57
58NestedLoopJoinBuild::NestedLoopJoinBuild(
59 int32_t operatorId,

Callers 1

getBuildDataMethod · 0.80

Calls 2

has_valueMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected