* 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
| 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. |
nothing calls this directly
no test coverage detected