MCPcopy Create free account
hub / github.com/bytedance/bolt / create

Method create

bolt/functions/prestosql/InPredicate.cpp:125–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 originalValues_{std::move(originalValues)} {}
124
125 static std::shared_ptr<exec::VectorFunction>
126 create(const VectorPtr& values, vector_size_t offset, vector_size_t size) {
127 ComplexSet uniqueValues;
128 bool hasNull = false;
129
130 for (auto i = offset; i < offset + size; i++) {
131 if (values->containsNullAt(i)) {
132 hasNull = true;
133 } else {
134 uniqueValues.insert({values.get(), i});
135 }
136 }
137
138 return std::make_shared<ComplexTypeInPredicate>(
139 std::move(uniqueValues), hasNull, values);
140 }
141
142 void apply(
143 const SelectivityVector& rows,

Callers

nothing calls this directly

Calls 3

containsNullAtMethod · 0.45
insertMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected