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

Function BuildTupleHashTable

src/backend/executor/execGrouping.c:265–288  ·  view source on GitHub ↗

* BuildTupleHashTable is a backwards-compatibilty wrapper for * BuildTupleHashTableExt(), that allocates the hashtable's metadata in * tablecxt. Note that hashtables created this way cannot be reset leak-free * with ResetTupleHashTable(). */

Source from the content-addressed store, hash-verified

263 * with ResetTupleHashTable().
264 */
265TupleHashTable
266BuildTupleHashTable(PlanState *parent,
267 TupleDesc inputDesc,
268 int numCols, AttrNumber *keyColIdx,
269 const Oid *eqfuncoids,
270 FmgrInfo *hashfunctions,
271 Oid *collations,
272 long nbuckets, Size additionalsize,
273 MemoryContext tablecxt,
274 MemoryContext tempcxt,
275 bool use_variable_hash_iv)
276{
277 return BuildTupleHashTableExt(parent,
278 inputDesc,
279 numCols, keyColIdx,
280 eqfuncoids,
281 hashfunctions,
282 collations,
283 nbuckets, additionalsize,
284 tablecxt,
285 tablecxt,
286 tempcxt,
287 use_variable_hash_iv);
288}
289
290/*
291 * Reset contents of the hashtable to be empty, preserving all the non-content

Callers

nothing calls this directly

Calls 1

BuildTupleHashTableExtFunction · 0.85

Tested by

no test coverage detected