| 1619 | } |
| 1620 | |
| 1621 | GGandivaBooleanNode * |
| 1622 | ggandiva_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 | } |
no outgoing calls
no test coverage detected