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 a "category" template type #149

Open
JohanMabille opened this issue Jul 19, 2024 · 0 comments
Open

Add a "category" template type #149

JohanMabille opened this issue Jul 19, 2024 · 0 comments

Comments

@JohanMabille
Copy link
Collaborator

JohanMabille commented Jul 19, 2024

The dictionary_encoded_layout can be used with types whose defualt layout is NOT the dictionary_encoded_layout: integers ( associated with fixed_size_layout), strings (asociated with variable_size_binary_layout), ...

This makes the creation of an array with this layout very cumbersome. A way to fix it is to create a new "category" template type, whose default associated layout is the dictionary_encoded_layout. This type should be a simple wrapper of its parameter, and is should be implicitly convertible to its parameter type.

An additional constructor may be added to the array if the category has to be entirely specified before building the array (simpler to implement but less flexible).

Plugging this "category" template type requires #148 to be implemented first.

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

No branches or pull requests

1 participant