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

Method describeTable

bolt/exec/tests/HashTableTest.cpp:315–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 std::string describeTable() {
316 std::stringstream out;
317 auto mode = topTable_->hashMode();
318 if (mode == BaseHashTable::HashMode::kHash) {
319 out << "Multipart key ";
320 } else {
321 out
322 << (mode == BaseHashTable::HashMode::kArray ? "Array "
323 : "Normalized key ");
324 out << "(";
325 for (auto& hasher : topTable_->hashers()) {
326 out << (hasher->isRange() ? "range " : "valueIds ");
327 }
328 out << ") ";
329 }
330 out << topTable_->numDistinct() << " entries";
331 return out.str();
332 }
333
334 void copyVectorsToTable(
335 const std::vector<RowVectorPtr>& batches,

Callers

nothing calls this directly

Calls 4

hashModeMethod · 0.80
isRangeMethod · 0.80
strMethod · 0.80
numDistinctMethod · 0.45

Tested by

no test coverage detected