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

Function main

examples/cpp_api/quickstart_dimension_labels.cc:324–349  ·  view source on GitHub ↗

Run the example. */

Source from the content-addressed store, hash-verified

322
323/** Run the example. */
324int main() {
325 // Define variables.
326 const char* array_uri = "quickstart_dimension_labels_array_cpp";
327
328 // Create TileDB context.
329 Context ctx;
330
331 // Only create the axes label array if it does not exist.
332 Object type = Object::object(ctx, array_uri);
333 if (type.type() != Object::Type::Array) {
334 // Create the array.
335 create_array(ctx, array_uri);
336
337 // Write data to the array and to the dimension labels.
338 write_array_and_labels(ctx, array_uri);
339 }
340
341 // Read the full data.
342 read_array_and_labels(ctx, array_uri);
343
344 // Read data just from a single label.
345 read_timestamp_data(ctx, array_uri);
346
347 // Read data from the array using the dimension labels.
348 read_array_by_label(ctx, array_uri);
349}

Callers

nothing calls this directly

Calls 6

create_arrayFunction · 0.70
write_array_and_labelsFunction · 0.70
read_array_and_labelsFunction · 0.70
read_timestamp_dataFunction · 0.70
read_array_by_labelFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected