MCPcopy Create free account
hub / github.com/apache/cloudberry / ContainsValue

Function ContainsValue

src/backend/optimizer/util/predtest_valueset.c:240–249  ·  view source on GitHub ↗

* basic operation on PossibleValueSet: determine if a value is contained in the set field of PossibleValueSet */

Source from the content-addressed store, hash-verified

238 * basic operation on PossibleValueSet: determine if a value is contained in the set field of PossibleValueSet
239 */
240static bool
241ContainsValue(PossibleValueSet *pvs, Const *value)
242{
243 bool found = false;
244
245 Assert(!pvs->isAnyValuePossible);
246 if (pvs->set != NULL)
247 hash_search(pvs->set, &value, HASH_FIND, &found);
248 return found;
249}
250
251/**
252 * in-place union operation

Callers 2

AddValueFunction · 0.85
RemoveUnmatchingValuesFunction · 0.85

Calls 1

hash_searchFunction · 0.85

Tested by

no test coverage detected