* ggandiva_and_node_new: * @children: (element-type GGandivaNode): The children of the AND node. * * Returns: A newly created #GGandivaAndNode for the AND expression. * * Since: 0.17.0 */
| 1426 | * Since: 0.17.0 |
| 1427 | */ |
| 1428 | GGandivaAndNode * |
| 1429 | ggandiva_and_node_new(GList *children) |
| 1430 | { |
| 1431 | std::vector<std::shared_ptr<gandiva::Node>> gandiva_nodes; |
| 1432 | for (auto node = children; node; node = g_list_next(node)) { |
| 1433 | auto gandiva_node = ggandiva_node_get_raw(GGANDIVA_NODE(node->data)); |
| 1434 | gandiva_nodes.push_back(gandiva_node); |
| 1435 | } |
| 1436 | auto gandiva_node = gandiva::TreeExprBuilder::MakeAnd(gandiva_nodes); |
| 1437 | return GGANDIVA_AND_NODE(ggandiva_boolean_node_new_raw(&gandiva_node, children)); |
| 1438 | } |
| 1439 | |
| 1440 | G_DEFINE_TYPE(GGandivaOrNode, ggandiva_or_node, GGANDIVA_TYPE_BOOLEAN_NODE) |
| 1441 |
nothing calls this directly
no test coverage detected