Skip to content

Commit e9d8191

Browse files
committed
Add docs and rename function.
1 parent c424e77 commit e9d8191

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

tiledb/sm/array_schema/array_schema_operations.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void store_array_schema(
129129
}
130130
}
131131

132-
shared_ptr<ArraySchema> handle_load_uri(
132+
shared_ptr<ArraySchema> load_array_schema(
133133
const Context& ctx, const URI& uri, const Config* config) {
134134
// Check array name
135135
if (uri.is_invalid()) {

tiledb/sm/array_schema/array_schema_operations.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ void store_array_schema(
6969
const shared_ptr<ArraySchema>& array_schema,
7070
const EncryptionKey& encryption_key);
7171

72-
shared_ptr<ArraySchema> handle_load_uri(
72+
/**
73+
* Handles loading an array schema from a URI.
74+
*
75+
* @param ctx TileDB Context.
76+
* @param uri The URI of the array to load schema.
77+
* @param config TileDB Config. If null, the context config will be used.
78+
*/
79+
shared_ptr<ArraySchema> load_array_schema(
7380
const Context& ctx, const URI& uri, const Config* config = nullptr);
7481

7582
} // namespace tiledb::sm

tiledb/sm/c_api/tiledb.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ int32_t tiledb_array_schema_load(
491491
}
492492

493493
(*array_schema)->array_schema_ =
494-
handle_load_uri(ctx->context(), sm::URI(array_uri));
494+
load_array_schema(ctx->context(), sm::URI(array_uri));
495495

496496
return TILEDB_OK;
497497
}
@@ -513,7 +513,7 @@ int32_t tiledb_array_schema_load_with_options(
513513

514514
// Check array name
515515
tiledb::sm::URI uri(array_uri);
516-
(*array_schema)->array_schema_ = handle_load_uri(
516+
(*array_schema)->array_schema_ = load_array_schema(
517517
ctx->context(), uri, config ? &config->config() : nullptr);
518518

519519
return TILEDB_OK;

0 commit comments

Comments
 (0)