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

Function block_id_from_hash

cpp/src/arrow/compute/key_map_internal.h:108–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 uint32_t group_id);
107
108 static uint32_t block_id_from_hash(uint32_t hash, int log_blocks) {
109 return hash >> (bits_hash_ - log_blocks);
110 }
111
112 static uint32_t global_slot_id(uint32_t block_id, uint32_t local_slot_id) {
113 return block_id * kSlotsPerBlock + local_slot_id;

Callers 6

InsertNewGroupMethod · 0.85
extract_group_ids_impMethod · 0.85
init_slot_idsMethod · 0.85
map_new_keysMethod · 0.85
grow_doubleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected