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

Function hash

cpp/src/parquet/chunker_internal_test.cc:65–73  ·  view source on GitHub ↗

generate determinisic and platform-independent data

Source from the content-addressed store, hash-verified

63
64// generate determinisic and platform-independent data
65inline uint64_t hash(uint64_t seed, uint64_t index) {
66 uint64_t h = (index + seed) * 0xc4ceb9fe1a85ec53ull;
67 h ^= h >> 33;
68 h *= 0xff51afd7ed558ccdull;
69 h ^= h >> 33;
70 h *= 0xc4ceb9fe1a85ec53ull;
71 h ^= h >> 33;
72 return h;
73}
74
75template <typename BuilderType, typename ValueFunc>
76Result<std::shared_ptr<Array>> GenerateArray(const std::shared_ptr<DataType>& type,

Callers 13

test_basicsFunction · 0.85
test_basics_np_requiredFunction · 0.85
test_tensor_hashingFunction · 0.85
test_buffer_hashingFunction · 0.85
test_types_hashableFunction · 0.85
test_hashingFunction · 0.85
test_metadata_hashingFunction · 0.85
StdHashMethod · 0.85
operator()Method · 0.85
GenerateArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected