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

Method extractSpillResultInRowFormat

bolt/exec/GroupingSet.cpp:1980–1996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978 }
1979}
1980
1981void GroupingSet::extractSpillResult(
1982 const RowVectorPtr& result,
1983 bool excludeKey) {
1984 // distinct agg's result only has key, so skip if excludeKey
1985 std::vector<char*> rows(mergeRows_->numRows());
1986 RowContainerIterator iter;
1987 if (!rows.empty()) {
1988 mergeRows_->listRows(
1989 &iter, rows.size(), RowContainer::kUnlimited, rows.data());
1990 }
1991 extractGroups(
1992 folly::Range<char**>(rows.data(), rows.size()), result, excludeKey);
1993 mergeRows_->clear();
1994}
1995
1996void GroupingSet::extractSpillResultInRowFormat(
1997 const RowVectorPtr& result,
1998 const std::vector<std::pair<int32_t, int32_t>>& ranges) {
1999 auto numRows = mergeRows_->numRows();

Callers

nothing calls this directly

Calls 5

numRowsMethod · 0.45
listRowsMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected