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

Method write_sparse

test/src/unit-cppapi-deletes.cc:215–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void 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
252std::vector<tiledb::Object> DeletesFx::read_group(
253 const tiledb::Group& group) const {

Callers

nothing calls this directly

Calls 7

TemporalPolicyClass · 0.85
EncryptionAlgorithmClass · 0.85
c_strMethod · 0.80
set_layoutMethod · 0.45
set_data_bufferMethod · 0.45
submit_and_finalizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected