MCPcopy Create free account
hub / github.com/apache/arrow / ComputeHash

Method ComputeHash

cpp/src/arrow/util/hashing.h:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 static bool CompareScalars(Scalar u, Scalar v) { return u == v; }
87
88 static hash_t ComputeHash(const Scalar& value) {
89 // Generic hash computation for scalars. Simply apply the string hash
90 // to the bit representation of the value.
91
92 // XXX in the case of FP values, we'd like equal values to have the same hash,
93 // even if they have different bit representations...
94 return ComputeStringHash<AlgNum>(&value, sizeof(value));
95 }
96};
97
98template <typename Scalar, uint64_t AlgNum = 0, typename Enable = void>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected