-
Notifications
You must be signed in to change notification settings - Fork 31
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
Named child arrays #1710
Named child arrays #1710
Conversation
vortex-array/src/data/viewed.rs
Outdated
|
||
#[allow(dead_code)] | ||
pub fn named_children(&self) -> Vec<(String, ArrayData)> { | ||
let mut collector = NamedChildrenCollector::default(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add this to Owned and ArrayData similar to what we do for children()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory we only need to add it to ArrayData. We move the impl to Owned/Viewed if it gets big and we don't want to inline it, but it only needs to be pub(super)
} | ||
|
||
impl NamedChildrenCollector { | ||
pub fn children(self) -> Vec<(String, ArrayData)> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
into_inner
is probably a bit more idiomatic name
No description provided.