-
Notifications
You must be signed in to change notification settings - Fork 84
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
Implement Clone on the bitmap::Iter type #289
base: main
Are you sure you want to change the base?
Conversation
62038c7
to
abfabf4
Compare
1b32c1e
to
d8f1829
Compare
a361213
to
6bba84b
Compare
|
||
/// Detailed statistics on the composition of a bitmap. | ||
#[derive(Clone, Copy, PartialEq, Debug)] | ||
pub struct Statistics { |
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.
Probably worth a #[non_exhaustive]
, to be able to add fields backwards-compatibly.
} | ||
Store::Bitmap(bitmap) => { | ||
cardinality += bitmap.len(); | ||
n_values_bitset_containers += bitmap.len() as u32; |
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 could theoretically overflow n_values_bitset_containers
if you have a full bitmap. Not sure if that's a problem or not.
If we ever implement run containers, that's much more likely, since it'd take much less memory to hold a totally full bitmap of all full run containers
@@ -30,6 +30,10 @@ impl ArrayStore { | |||
ArrayStore { vec: Vec::with_capacity(capacity) } | |||
} | |||
|
|||
pub fn capacity(&self) -> usize { |
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.
We'd at least need to document that this is the capacity of containers, not the capacity of values, or maybe have a different name?
No description provided.