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

Method Set

be/src/util/bitmap.h:59–68  ·  view source on GitHub ↗

Sets the bit at 'bit_index' to v.

Source from the content-addressed store, hash-verified

57
58 /// Sets the bit at 'bit_index' to v.
59 void Set(int64_t bit_index, bool v) {
60 int64_t word_index = bit_index >> NUM_OFFSET_BITS;
61 bit_index &= BIT_INDEX_MASK;
62 DCHECK_LT(word_index, buffer_.size());
63 if (v) {
64 buffer_[word_index] |= (1LL << bit_index);
65 } else {
66 buffer_[word_index] &= ~(1LL << bit_index);
67 }
68 }
69
70 /// Returns true if the bit at 'bit_index' is set.
71 bool Get(int64_t bit_index) const {

Callers 15

CancelAdmissionMethod · 0.45
SubmitForAdmissionMethod · 0.45
WaitOnQueuedMethod · 0.45
TryDequeueMethod · 0.45
ResetMemConsumedMethod · 0.45
TEST_FFunction · 0.45
CancelAdmissionMethod · 0.45
MarkActiveMethod · 0.45
SetRowNullMethod · 0.45
CloseMethod · 0.45
GetNextRightSemiJoinMethod · 0.45
GetNextRightAntiJoinMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 8

ResetMemConsumedMethod · 0.36
TEST_FFunction · 0.36
TestDataMethod · 0.36
RunThreadFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
CreateRandomBitmapFunction · 0.36
TESTFunction · 0.36