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

Function array_open_from_capnp

tiledb/sm/serialization/array.cc:366–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366Status array_open_from_capnp(
367 const capnp::ArrayOpen::Reader& array_open_reader, Array* array) {
368 if (array == nullptr) {
369 return LOG_STATUS(Status_SerializationError(
370 "Error deserializing array open; array is null."));
371 }
372
373 if (array_open_reader.hasConfig()) {
374 tdb_unique_ptr<Config> decoded_config = nullptr;
375 RETURN_NOT_OK(
376 config_from_capnp(array_open_reader.getConfig(), &decoded_config));
377 array->unsafe_set_config(*decoded_config);
378 }
379
380 if (array_open_reader.hasQueryType()) {
381 auto query_type_str = array_open_reader.getQueryType();
382 QueryType query_type = QueryType::READ;
383 RETURN_NOT_OK(query_type_enum(query_type_str, &query_type));
384 array->set_query_type(query_type);
385 }
386
387 return Status::Ok();
388}
389
390Status metadata_serialize(
391 Metadata* metadata,

Callers 1

array_open_deserializeFunction · 0.85

Calls 10

LOG_STATUSFunction · 0.85
config_from_capnpFunction · 0.85
query_type_enumFunction · 0.85
hasConfigMethod · 0.80
getConfigMethod · 0.80
hasQueryTypeMethod · 0.80
getQueryTypeMethod · 0.80
unsafe_set_configMethod · 0.45
set_query_typeMethod · 0.45

Tested by

no test coverage detected