-
Notifications
You must be signed in to change notification settings - Fork 53
add getrows #284
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 getrows #284
Changes from 1 commit
9bc355c
b41146a
04c4991
6695658
c539d5a
76f1375
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -565,6 +565,28 @@ struct Partitioner{T} | |||||
x::T | ||||||
end | ||||||
|
||||||
""" | ||||||
getrows(x, inds; view=nothing) | ||||||
|
||||||
Return one or more rows from table `x` according to the position(s) specified by `inds`. | ||||||
|
||||||
- If `inds` is a single integer return a row object. | ||||||
- If `inds` is a collection of integers, return a table object. | ||||||
|
- If `inds` is a collection of integers, return a table object. | |
- If `inds` is a collection of integers, return an indexable object of rows |
Just a bit more specific; one of the main motivations for this was to ensure users can get an in-memory/indexable collection of rows in a consistent way.
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.
Are you sure we want to require Tables.getrows
to return a indexable collection of rows? That would mean that e.g. for a NamedTuple
of vectors getrows
couldn't return another NamedTuple
of vectors, even if that's the most efficient representation. IOW this is against the implementation that this PR adds for ColumnTable
. :-)
Uh oh!
There was an error while loading. Please reload this page.