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

Method HashVarLen

cpp/src/arrow/compute/key_hash_internal.cc:238–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void Hashing32::HashVarLen(int64_t hardware_flags, bool combine_hashes, uint32_t num_rows,
239 const uint32_t* offsets, const uint8_t* concatenated_keys,
240 uint32_t* hashes, uint32_t* hashes_temp_for_combine) {
241 uint32_t num_processed = 0;
242#if defined(ARROW_HAVE_RUNTIME_AVX2)
243 if (hardware_flags & arrow::internal::CpuInfo::AVX2) {
244 num_processed = HashVarLen_avx2(combine_hashes, num_rows, offsets, concatenated_keys,
245 hashes, hashes_temp_for_combine);
246 }
247#endif
248 if (combine_hashes) {
249 HashVarLenImp<uint32_t, true>(num_rows - num_processed, offsets + num_processed,
250 concatenated_keys, hashes + num_processed);
251 } else {
252 HashVarLenImp<uint32_t, false>(num_rows - num_processed, offsets + num_processed,
253 concatenated_keys, hashes + num_processed);
254 }
255}
256
257void Hashing32::HashVarLen(int64_t hardware_flags, bool combine_hashes, uint32_t num_rows,
258 const uint64_t* offsets, const uint8_t* concatenated_keys,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected