-
Notifications
You must be signed in to change notification settings - Fork 912
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 data-size member to libcudf column_view classes #14031
Changes from all commits
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 |
---|---|---|
|
@@ -159,6 +159,13 @@ class column { | |
*/ | ||
[[nodiscard]] size_type size() const noexcept { return _size; } | ||
|
||
/** | ||
* @brief Returns the number of data bytes | ||
* | ||
* @return The number of bytes | ||
*/ | ||
[[nodiscard]] std::size_t size_bytes() const noexcept; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a fundamental invariant is that Are we planning to make There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are not changing I think the invariant argument may break down with compounds types. We are only trying to solve for strings columns at this point. |
||
|
||
/** | ||
* @brief Returns the count of null elements. | ||
* | ||
|
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.
This should be clearer. Is it the number of bytes of a single element?
size() * sizeof(T)
?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.
It would be
size() * sizeof(T)
but only whereT
is a fixed-width-type.The intention here is to expose the actual device-buffer
size()
which may be larger thansizeof(size_type)
in the solutions we are looking at ways to allow the total number of bytes in a strings column to exceedsize_type
.