| 213 | } |
| 214 | |
| 215 | void DeletesFx::write_sparse( |
| 216 | std::vector<int> a1, |
| 217 | std::vector<uint64_t> dim1, |
| 218 | std::vector<uint64_t> dim2, |
| 219 | uint64_t timestamp, |
| 220 | bool encrypt) { |
| 221 | // Open array. |
| 222 | std::unique_ptr<Array> array; |
| 223 | if (encrypt) { |
| 224 | array = std::make_unique<Array>( |
| 225 | ctx_, |
| 226 | array_name_.c_str(), |
| 227 | TILEDB_WRITE, |
| 228 | TemporalPolicy(TimeTravel, timestamp), |
| 229 | EncryptionAlgorithm(AESGCM, key_.c_str())); |
| 230 | } else { |
| 231 | array = std::make_unique<Array>( |
| 232 | ctx_, |
| 233 | array_name_.c_str(), |
| 234 | TILEDB_WRITE, |
| 235 | TemporalPolicy(TimeTravel, timestamp)); |
| 236 | } |
| 237 | |
| 238 | // Create query. |
| 239 | Query query(ctx_, *array, TILEDB_WRITE); |
| 240 | query.set_layout(TILEDB_GLOBAL_ORDER); |
| 241 | query.set_data_buffer("a1", a1); |
| 242 | query.set_data_buffer("d1", dim1); |
| 243 | query.set_data_buffer("d2", dim2); |
| 244 | |
| 245 | // Submit/finalize the query. |
| 246 | query.submit_and_finalize(); |
| 247 | |
| 248 | // Close array. |
| 249 | array->close(); |
| 250 | } |
| 251 | |
| 252 | std::vector<tiledb::Object> DeletesFx::read_group( |
| 253 | const tiledb::Group& group) const { |
nothing calls this directly
no test coverage detected