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

Method shuffle

bolt/exec/LocalShuffle.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59}
60void LocalShuffle::shuffle() {
61 shuffledRows_.resize(currentRows_);
62 RowContainerIterator iter;
63 data_->listRows(&iter, currentRows_, shuffledRows_.data());
64 std::shuffle(shuffledRows_.begin(), shuffledRows_.end(), gen_);
65 shuffled_ = true;
66 pool()->release();
67}
68
69void LocalShuffle::prepareOutput() {
70 BOLT_CHECK_GT(maxOutputRows_, 0);

Callers

nothing calls this directly

Calls 7

poolFunction · 0.50
resizeMethod · 0.45
listRowsMethod · 0.45
dataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected