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

Method create

tiledb/sm/cpp_api/query_condition.h:259–267  ·  view source on GitHub ↗

* Factory function for creating a new query condition with a string * datatype. * * **Example:** * @code{.cpp} * tiledb::Context ctx; * auto a1 = tiledb::QueryCondition::create(ctx, "a1", "foo", TILEDB_LE); * @endcode * * @tparam T Datatype of the attribute. Can either be arithmetic type or * string. * @param ctx The TileDB context. * @param name The attribute n

Source from the content-addressed store, hash-verified

257 * @return A new QueryCondition object.
258 */
259 static QueryCondition create(
260 const Context& ctx,
261 const std::string& attribute_name,
262 const std::string& value,
263 tiledb_query_condition_op_t op) {
264 QueryCondition qc(ctx);
265 qc.init(attribute_name, value, op);
266 return qc;
267 }
268
269 /**
270 * Factory function for creating a new query condition with datatype T.

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected