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

Function stream_move_node

src/backend/nodes/tidbitmap.c:1856–1865  ·  view source on GitHub ↗

* stream_move_node - move a streamnode from StreamBitMap (source)'s streamnode * to given StreamBitMap(destination). Also transfer the ownership of source streamnode by * resetting to NULL. */

Source from the content-addressed store, hash-verified

1854 * resetting to NULL.
1855 */
1856void
1857stream_move_node(StreamBitmap *destination, StreamBitmap *source, StreamType kind)
1858{
1859 Assert(NULL != destination);
1860 Assert(NULL != source);
1861 stream_add_node(destination,
1862 source->streamNode, kind);
1863 /* destination owns the streamNode and hence resetting it to NULL for source->streamNode. */
1864 source->streamNode = NULL;
1865}
1866
1867
1868/*

Callers 2

MultiExecBitmapOrFunction · 0.85
MultiExecBitmapAndFunction · 0.85

Calls 1

stream_add_nodeFunction · 0.85

Tested by

no test coverage detected