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

Method negate

tiledb/sm/cpp_api/query_condition.h:228–235  ·  view source on GitHub ↗

* Return a query condition representing a negation of this query condition. * Currently this is performed by applying De Morgan's theorem recursively * to the query condition's internal representation. * * **Example:** * * @code{.cpp} * int qc1_cmp_value = 10; * tiledb::QueryCondition qc1; * qc1.init("a1", &qc1_cmp_value, sizeof(int), TILEDB_LT); * tiledb::QueryCondit

Source from the content-addressed store, hash-verified

226 * @endcode
227 */
228 QueryCondition negate() const {
229 auto& ctx = ctx_.get();
230 tiledb_query_condition_t* negated_qc;
231 ctx.handle_error(tiledb_query_condition_negate(
232 ctx.ptr().get(), query_condition_.get(), &negated_qc));
233
234 return QueryCondition(ctx_, negated_qc);
235 }
236
237 /* ********************************* */
238 /* STATIC FUNCTIONS */

Callers 1

Calls 5

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

Tested by

no test coverage detected