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

Function createVectorHashers

bolt/exec/VectorHasher.cpp:881–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881std::vector<std::unique_ptr<VectorHasher>> createVectorHashers(
882 const RowTypePtr& rowType,
883 const std::vector<core::FieldAccessTypedExprPtr>& keys) {
884 const auto numKeys = keys.size();
885
886 std::vector<std::unique_ptr<VectorHasher>> hashers;
887 hashers.reserve(numKeys);
888 for (const auto& key : keys) {
889 const auto channel = exprToChannel(key.get(), rowType);
890 hashers.push_back(VectorHasher::create(key->type(), channel));
891 }
892
893 return hashers;
894}
895
896} // namespace bytedance::bolt::exec

Callers 6

RowNumberMethod · 0.85
MarkDistinctMethod · 0.85
initializeMethod · 0.85
SortWindowBuildMethod · 0.85
initializeMethod · 0.85
TopNRowNumberMethod · 0.85

Calls 7

exprToChannelFunction · 0.85
createFunction · 0.50
sizeMethod · 0.45
reserveMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected