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

Method insert

be/src/kudu/util/bitset.h:69–76  ·  view source on GitHub ↗

Inserts 'val' into the set.

Source from the content-addressed store, hash-verified

67
68 // Inserts 'val' into the set.
69 std::pair<iterator, bool> insert(const IntType& val) {
70 DCHECK_LT(val, MaxVals);
71 bool not_present = !contains(val);
72 if (not_present) {
73 bitset_.set(static_cast<size_t>(val));
74 }
75 return { iterator(this, static_cast<int>(val)), not_present };
76 }
77
78 // Removes 'val' from the set if it exists.
79 size_t erase(const IntType val) {

Callers 15

lFunction · 0.45
fbFunction · 0.45
gbFunction · 0.45
jrFunction · 0.45
VrFunction · 0.45
nFunction · 0.45
addHtmlLabelFunction · 0.45
rectFunction · 0.45
ellipseFunction · 0.45
circleFunction · 0.45
TFunction · 0.45
c3.v7.min.jsFile · 0.45

Calls 3

containsFunction · 0.85
iteratorClass · 0.85
setMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
RandomBitmapMethod · 0.36
TEST_FFunction · 0.36
ValidateLayoutFunction · 0.36
TEST_PFunction · 0.36
ReadStreamMethod · 0.36
ReadStreamMergingMethod · 0.36
CheckReceiversMethod · 0.36