MCPcopy Create free account
hub / github.com/apache/impala / SetDistinctEstimateBit

Function SetDistinctEstimateBit

be/src/exprs/aggregate-functions-ir.cc:1512–1519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1510}
1511
1512static inline void SetDistinctEstimateBit(uint8_t* bitmap,
1513 uint32_t row_index, uint32_t bit_index) {
1514 // We need to convert Bitmap[alpha,index] into the index of the string.
1515 // alpha tells which of the 32bit we've to jump to.
1516 // index then lead us to the byte and bit.
1517 uint32_t *int_bitmap = reinterpret_cast<uint32_t*>(bitmap);
1518 int_bitmap[row_index] |= (1 << bit_index);
1519}
1520
1521static inline bool GetDistinctEstimateBit(uint8_t* bitmap,
1522 uint32_t row_index, uint32_t bit_index) {

Callers 2

PcUpdateMethod · 0.85
PcsaUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected