* Combines this instance with another instance to form a multi-clause * condition object. * * **Example:** * * @code{.cpp} * int qc1_cmp_value = 10; * tiledb::QueryCondition qc1; * qc1.init("a1", &qc1_cmp_value, sizeof(int), TILEDB_LT); * int qc2_cmp_value = 3; * tiledb::QueryCondition qc2; * qc.init("a1", &qc2_cmp_value, sizeof(int), TILEDB_GE); * * tiledb::
| 196 | * instance with `rhs`. |
| 197 | */ |
| 198 | QueryCondition combine( |
| 199 | const QueryCondition& rhs, |
| 200 | tiledb_query_condition_combination_op_t combination_op) const { |
| 201 | auto& ctx = ctx_.get(); |
| 202 | tiledb_query_condition_t* combined_qc; |
| 203 | ctx.handle_error(tiledb_query_condition_combine( |
| 204 | ctx.ptr().get(), |
| 205 | query_condition_.get(), |
| 206 | rhs.ptr().get(), |
| 207 | combination_op, |
| 208 | &combined_qc)); |
| 209 | |
| 210 | return QueryCondition(ctx_, combined_qc); |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Return a query condition representing a negation of this query condition. |
no test coverage detected