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

Method Query

tiledb/sm/cpp_api/query.h:135–143  ·  view source on GitHub ↗

* Creates a TileDB query object. * * The query type (read or write) must be the same as the type used to open * the array object. * * The storage manager also acquires a **shared lock** on the array. This * means multiple read and write queries to the same array can be made * concurrently (in TileDB, only consolidation requires an exclusive lock for * a short period of time

Source from the content-addressed store, hash-verified

133 * @param type The TileDB query type
134 */
135 Query(const Context& ctx, const Array& array, tiledb_query_type_t type)
136 : ctx_(ctx)
137 , array_(array)
138 , schema_(array.schema()) {
139 tiledb_query_t* q;
140 ctx.handle_error(
141 tiledb_query_alloc(ctx.ptr().get(), array.ptr().get(), type, &q));
142 query_ = std::shared_ptr<tiledb_query_t>(q, deleter_);
143 }
144
145 /**
146 * Creates a TileDB query object.

Callers

nothing calls this directly

Calls 7

tiledb_query_allocFunction · 0.85
handle_errorMethod · 0.80
schemaMethod · 0.45
getMethod · 0.45
ptrMethod · 0.45
query_typeMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected