@@ -227,14 +227,14 @@ impl Chunk {
227
227
//
228
228
// TODO(cmc): This needs to be stored in chunk metadata and transported across IPC.
229
229
#[ inline]
230
- pub fn num_events_cumulative ( & self ) -> usize {
230
+ pub fn num_events_cumulative ( & self ) -> u64 {
231
231
// Reminder: component columns are sparse, we must take a look at the validity bitmaps.
232
232
self . components
233
233
. values ( )
234
234
. map ( |list_array| {
235
235
list_array. validity ( ) . map_or_else (
236
- || list_array. len ( ) ,
237
- |validity| validity. len ( ) - validity. unset_bits ( ) ,
236
+ || list_array. len ( ) as u64 ,
237
+ |validity| validity. len ( ) as u64 - validity. unset_bits ( ) as u64 ,
238
238
)
239
239
} )
240
240
. sum ( )
@@ -254,7 +254,7 @@ impl Chunk {
254
254
re_tracing:: profile_function!( ) ;
255
255
256
256
if self . is_static ( ) {
257
- return vec ! [ ( TimeInt :: STATIC , self . num_events_cumulative( ) as u64 ) ] ;
257
+ return vec ! [ ( TimeInt :: STATIC , self . num_events_cumulative( ) ) ] ;
258
258
}
259
259
260
260
let Some ( time_chunk) = self . timelines ( ) . get ( timeline) else {
@@ -263,7 +263,7 @@ impl Chunk {
263
263
264
264
let time_range = time_chunk. time_range ( ) ;
265
265
if time_range. min ( ) == time_range. max ( ) {
266
- return vec ! [ ( time_range. min( ) , self . num_events_cumulative( ) as u64 ) ] ;
266
+ return vec ! [ ( time_range. min( ) , self . num_events_cumulative( ) ) ] ;
267
267
}
268
268
269
269
let counts = if time_chunk. is_sorted ( ) {
@@ -363,12 +363,12 @@ impl Chunk {
363
363
//
364
364
// TODO(cmc): This needs to be stored in chunk metadata and transported across IPC.
365
365
#[ inline]
366
- pub fn num_events_for_component ( & self , component_name : ComponentName ) -> Option < usize > {
366
+ pub fn num_events_for_component ( & self , component_name : ComponentName ) -> Option < u64 > {
367
367
// Reminder: component columns are sparse, we must check validity bitmap.
368
368
self . components . get ( & component_name) . map ( |list_array| {
369
369
list_array. validity ( ) . map_or_else (
370
- || list_array. len ( ) ,
371
- |validity| validity. len ( ) - validity. unset_bits ( ) ,
370
+ || list_array. len ( ) as u64 ,
371
+ |validity| validity. len ( ) as u64 - validity. unset_bits ( ) as u64 ,
372
372
)
373
373
} )
374
374
}
0 commit comments