MCPcopy Create free account
hub / github.com/apache/arrow / ggandiva_boolean_node_new_raw

Function ggandiva_boolean_node_new_raw

c_glib/gandiva-glib/node.cpp:1621–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1619}
1620
1621GGandivaBooleanNode *
1622ggandiva_boolean_node_new_raw(std::shared_ptr<gandiva::Node> *gandiva_node,
1623 GList *children)
1624{
1625 auto gandiva_boolean_node =
1626 std::static_pointer_cast<gandiva::BooleanNode>(*gandiva_node);
1627
1628 GType type;
1629 if (gandiva_boolean_node->expr_type() == gandiva::BooleanNode::AND) {
1630 type = GGANDIVA_TYPE_AND_NODE;
1631 } else {
1632 type = GGANDIVA_TYPE_OR_NODE;
1633 }
1634 auto boolean_node = g_object_new(type, "node", gandiva_node, NULL);
1635 auto priv = GGANDIVA_BOOLEAN_NODE_GET_PRIVATE(boolean_node);
1636 priv->children =
1637 g_list_copy_deep(children, reinterpret_cast<GCopyFunc>(g_object_ref), NULL);
1638 return GGANDIVA_BOOLEAN_NODE(boolean_node);
1639}

Callers 2

ggandiva_and_node_newFunction · 0.85
ggandiva_or_node_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected