MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / combine

Method combine

tiledb/sm/cpp_api/query_condition.h:198–211  ·  view source on GitHub ↗

* 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::

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 5

handle_errorMethod · 0.80
QueryConditionClass · 0.70
getMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected