| 69 | |
| 70 | template <TypeKind Kind> |
| 71 | inline 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 | |
| 84 | template <TypeKind Kind> |
| 85 | FLATTEN void VectorHasher::hashValues( |
nothing calls this directly
no test coverage detected