Skip to content

move away from deprecated methods step1#356

Merged
DimitrisStaratzis merged 1 commit intomasterfrom
dstara/move_away_from_deprecated_methods
Apr 25, 2024
Merged

move away from deprecated methods step1#356
DimitrisStaratzis merged 1 commit intomasterfrom
dstara/move_away_from_deprecated_methods

Conversation

@DimitrisStaratzis
Copy link
Contributor

@DimitrisStaratzis DimitrisStaratzis commented Apr 24, 2024

These methods have a v2 equivalent in the c api.

tiledb_fragment_info_get_fragment_name()
tiledb_group_get_member_by_index()
tiledb_group_get_member_by_name()

When the v2 was introduced I wrapped them with the v2 in the signature. Example: getMemberByNameV2()

This is a bit ugly so I am now deprecating the versions with the v2 in the signature in favor of the old signatures. The methods with the old signatures are now using the v2 c_apis

tiledb_array_delete_fragments() is a different case. It is now deprecated and replaced by a static method.

This PR removed the dependency to deprecated methods completely without introducing any breaking changes. Let me know if you want to also remove the deprecated methods completely.

[sc-45973]

@DimitrisStaratzis DimitrisStaratzis marked this pull request as ready for review April 24, 2024 11:52
* @return the URI of the member with the given name
* @throws TileDBError
*/
public String getMemberByName(String name) throws TileDBError {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can update the v2 methods to call the new ones to reduce duplication.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are going to be removed very soon but yeah good catch. getFragmentNameV2() has a different return type which I can not create so I am leaving it as is.

@DimitrisStaratzis DimitrisStaratzis force-pushed the dstara/move_away_from_deprecated_methods branch from 9ff0d89 to e4259d8 Compare April 24, 2024 11:58
@DimitrisStaratzis DimitrisStaratzis merged commit c5f2a5b into master Apr 25, 2024
@DimitrisStaratzis DimitrisStaratzis deleted the dstara/move_away_from_deprecated_methods branch April 25, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants