Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split tarantoolTuple to tuple with metadata and vise versa #375

Open
ArtDu opened this issue Mar 28, 2023 · 0 comments
Open

Split tarantoolTuple to tuple with metadata and vise versa #375

ArtDu opened this issue Mar 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ArtDu
Copy link
Contributor

ArtDu commented Mar 28, 2023

it seems we need a new interface class TarantoolTupleWithMetadata extends TarantoolTuple, where we will take out all the methods for working with fields by name. This will be most convenient for the user - he will not see the methods of working with fields from the blunders that have returned from the box API, and in order to use these methods, he will have to explicitly check instanceof and cast to the new interface.

Now, in fact, users should catch an exception that there is no metadata or contact only by field numbers.

The method with checking that the metadata is there will help in springdata, but this problem will remain with users - they will continue to compile code that gives an error in runtime.

@dkasimovskiy dkasimovskiy added the enhancement New feature or request label Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants