diff --git a/tiledb/sm/cpp_api/array.h b/tiledb/sm/cpp_api/array.h index b11d0b9af4d..c5155b63726 100644 --- a/tiledb/sm/cpp_api/array.h +++ b/tiledb/sm/cpp_api/array.h @@ -661,6 +661,7 @@ class Array { * @param config Configuration parameters for the consolidation. */ // clang-format on + TILEDB_DEPRECATED static void consolidate( const Context& ctx, const std::string& uri, @@ -819,6 +820,7 @@ class Array { * @param encryption_key The encryption key to use. */ // clang-format on + TILEDB_DEPRECATED static void create( const std::string& uri, const ArraySchema& schema, @@ -1176,6 +1178,7 @@ class Array { * @param config Configuration parameters for the consolidation. */ // clang-format on + TILEDB_DEPRECATED static void consolidate_metadata( const Context& ctx, const std::string& uri, diff --git a/tiledb/sm/cpp_api/array_schema.h b/tiledb/sm/cpp_api/array_schema.h index 1e1681e90f2..f7d7c3e44a1 100644 --- a/tiledb/sm/cpp_api/array_schema.h +++ b/tiledb/sm/cpp_api/array_schema.h @@ -179,6 +179,7 @@ class ArraySchema : public Schema { * @param encryption_type The encryption type to use. * @param encryption_key The encryption key to use. */ + TILEDB_DEPRECATED ArraySchema( const Context& ctx, const std::string& uri, diff --git a/tiledb/sm/cpp_api/query.h b/tiledb/sm/cpp_api/query.h index a7603be2d90..22246ab706d 100644 --- a/tiledb/sm/cpp_api/query.h +++ b/tiledb/sm/cpp_api/query.h @@ -303,6 +303,8 @@ class Query { /** * Submit an async query, with callback. Call returns immediately. * + * Deprecated, call `submit()` on another thread instead. + * * @note Same notes apply as `Query::submit()`. * * **Example:** @@ -316,7 +318,7 @@ class Query { * @param callback Callback function. */ template - void submit_async(const Fn& callback) { + TILEDB_DEPRECATED void submit_async(const Fn& callback) { std::function wrapper = [&](void*) { callback(); }; auto& ctx = ctx_.get(); ctx.handle_error(tiledb::impl::tiledb_query_submit_async_func( @@ -326,6 +328,8 @@ class Query { /** * Submit an async query, with no callback. Call returns immediately. * + * Deprecated, call `submit()` on another thread instead. + * * @note Same notes apply as `Query::submit()`. * * **Example:** @@ -336,7 +340,7 @@ class Query { * query.submit_async(); * @endcode */ - void submit_async() { + TILEDB_DEPRECATED void submit_async() { submit_async([]() {}); }