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

Add complex keys #774

Merged
merged 4 commits into from
Sep 29, 2024
Merged

Add complex keys #774

merged 4 commits into from
Sep 29, 2024

Conversation

Julow
Copy link
Owner

@Julow Julow commented Sep 28, 2024

This allows to add new kinds of keys that need more data without making KeyValue's footprint bigger for common keys.

This changes the [_symbol] field into [_payload], which holds the same as the previous field for more common keys but can hold bigger objects for keys of the new "Complex" kind.

This also adds a complex key: String keys with a symbol different than the outputted string.

Unit tests are added as the Java language is not helpful in making robust code.

This allows to add new kinds of keys that need more data without making
KeyValue's footprint bigger for common keys.

This changes the [_symbol] field into [_payload], which holds the same
as the previous field for more common keys but can hold bigger objects
for keys of the new "Complex" kind.

This also adds a complex key: String keys with a symbol different than
the outputted string.

Unit tests are added as the Java language is not helpful in making
robust code.
@Julow Julow merged commit 9f22e53 into master Sep 29, 2024
8 checks passed
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.

1 participant