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

Function hashOne

bolt/exec/VectorHasher.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template <TypeKind Kind>
71inline uint64_t hashOne(DecodedVector& decoded, vector_size_t index) {
72 if constexpr (
73 Kind == TypeKind::ROW || Kind == TypeKind::ARRAY ||
74 Kind == TypeKind::MAP) {
75 // Virtual function call for complex type.
76 return decoded.base()->hashValueAt(decoded.index(index));
77 }
78
79 // Inlined for scalars.
80 using T = typename KindToFlatVector<Kind>::HashRowType;
81 return folly::hasher<T>()(decoded.valueAt<T>(index));
82}
83
84template <TypeKind Kind>
85FLATTEN void VectorHasher::hashValues(

Callers

nothing calls this directly

Calls 3

hashValueAtMethod · 0.45
baseMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected