@@ -509,7 +509,7 @@ impl ScalarIndex for BitmapIndex {
509509 for key in self . index_map . keys ( ) {
510510 let bitmap = self . load_bitmap ( key, None ) . await ?;
511511 let remapped_bitmap =
512- RowAddrTreeMap :: from_iter ( bitmap. row_ids ( ) . unwrap ( ) . filter_map ( |addr| {
512+ RowAddrTreeMap :: from_iter ( bitmap. row_addrs ( ) . unwrap ( ) . filter_map ( |addr| {
513513 let addr_as_u64 = u64:: from ( addr) ;
514514 mapping
515515 . get ( & addr_as_u64)
@@ -521,7 +521,7 @@ impl ScalarIndex for BitmapIndex {
521521
522522 if !self . null_map . is_empty ( ) {
523523 let remapped_null =
524- RowAddrTreeMap :: from_iter ( self . null_map . row_ids ( ) . unwrap ( ) . filter_map ( |addr| {
524+ RowAddrTreeMap :: from_iter ( self . null_map . row_addrs ( ) . unwrap ( ) . filter_map ( |addr| {
525525 let addr_as_u64 = u64:: from ( addr) ;
526526 mapping
527527 . get ( & addr_as_u64)
@@ -835,7 +835,7 @@ pub mod tests {
835835 // Verify results
836836 let expected_red_rows = vec ! [ 0u64 , 3 , 6 , 10 , 11 ] ;
837837 if let SearchResult :: Exact ( row_ids) = result {
838- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
838+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
839839 actual. sort ( ) ;
840840 assert_eq ! ( actual, expected_red_rows) ;
841841 } else {
@@ -845,7 +845,7 @@ pub mod tests {
845845 // Test 2: Search for "red" again - should hit cache
846846 let result = index. search ( & query, & NoOpMetricsCollector ) . await . unwrap ( ) ;
847847 if let SearchResult :: Exact ( row_ids) = result {
848- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
848+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
849849 actual. sort ( ) ;
850850 assert_eq ! ( actual, expected_red_rows) ;
851851 }
@@ -859,7 +859,7 @@ pub mod tests {
859859
860860 let expected_range_rows = vec ! [ 1u64 , 2 , 5 , 7 , 8 , 12 , 13 ] ;
861861 if let SearchResult :: Exact ( row_ids) = result {
862- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
862+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
863863 actual. sort ( ) ;
864864 assert_eq ! ( actual, expected_range_rows) ;
865865 }
@@ -873,7 +873,7 @@ pub mod tests {
873873
874874 let expected_in_rows = vec ! [ 0u64 , 3 , 4 , 6 , 9 , 10 , 11 , 14 ] ;
875875 if let SearchResult :: Exact ( row_ids) = result {
876- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
876+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( |id| id. into ( ) ) . collect ( ) ;
877877 actual. sort ( ) ;
878878 assert_eq ! ( actual, expected_in_rows) ;
879879 }
@@ -972,11 +972,11 @@ pub mod tests {
972972 . unwrap_or_else ( |_| panic ! ( "Key {} should exist" , key_val) ) ;
973973
974974 // Convert RowAddrTreeMap to a vector for easier assertion
975- let row_ids : Vec < u64 > = bitmap. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
975+ let row_addrs : Vec < u64 > = bitmap. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
976976
977977 // Verify length
978978 assert_eq ! (
979- row_ids . len( ) ,
979+ row_addrs . len( ) ,
980980 per_bitmap_size as usize ,
981981 "Bitmap for key {} has wrong size" ,
982982 key_val
@@ -985,7 +985,7 @@ pub mod tests {
985985 // Verify first few and last few elements
986986 for i in 0 ..5 . min ( per_bitmap_size) {
987987 assert ! (
988- row_ids . contains( & i) ,
988+ row_addrs . contains( & i) ,
989989 "Bitmap for key {} should contain row_id {}" ,
990990 key_val,
991991 i
@@ -994,7 +994,7 @@ pub mod tests {
994994
995995 for i in ( per_bitmap_size - 5 ) ..per_bitmap_size {
996996 assert ! (
997- row_ids . contains( & i) ,
997+ row_addrs . contains( & i) ,
998998 "Bitmap for key {} should contain row_id {}" ,
999999 key_val,
10001000 i
@@ -1004,15 +1004,15 @@ pub mod tests {
10041004 // Verify exact range
10051005 let expected_range: Vec < u64 > = ( 0 ..per_bitmap_size) . collect ( ) ;
10061006 assert_eq ! (
1007- row_ids , expected_range,
1007+ row_addrs , expected_range,
10081008 "Bitmap for key {} doesn't contain expected values" ,
10091009 key_val
10101010 ) ;
10111011
10121012 tracing:: info!(
10131013 "✓ Verified bitmap for key {}: {} rows as expected" ,
10141014 key_val,
1015- row_ids . len( )
1015+ row_addrs . len( )
10161016 ) ;
10171017 }
10181018
@@ -1102,7 +1102,7 @@ pub mod tests {
11021102 . get_with_key :: < BitmapKey > ( & cache_key_red)
11031103 . await
11041104 . unwrap ( ) ;
1105- let red_rows: Vec < u64 > = cached_red. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
1105+ let red_rows: Vec < u64 > = cached_red. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
11061106 assert_eq ! ( red_rows, vec![ 0 , 3 , 6 , 10 , 11 ] ) ;
11071107
11081108 // Call prewarm again - should be idempotent
@@ -1113,7 +1113,7 @@ pub mod tests {
11131113 . get_with_key :: < BitmapKey > ( & cache_key_red)
11141114 . await
11151115 . unwrap ( ) ;
1116- let red_rows_2: Vec < u64 > = cached_red_2. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
1116+ let red_rows_2: Vec < u64 > = cached_red_2. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
11171117 assert_eq ! ( red_rows_2, vec![ 0 , 3 , 6 , 10 , 11 ] ) ;
11181118 }
11191119
@@ -1228,7 +1228,7 @@ pub mod tests {
12281228 ] ;
12291229 let actual_null_addrs: Vec < u64 > = reloaded_idx
12301230 . null_map
1231- . row_ids ( )
1231+ . row_addrs ( )
12321232 . unwrap ( )
12331233 . map ( u64:: from)
12341234 . collect ( ) ;
@@ -1244,7 +1244,7 @@ pub mod tests {
12441244 . await
12451245 . unwrap ( ) ;
12461246 if let crate :: scalar:: SearchResult :: Exact ( row_ids) = result {
1247- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
1247+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
12481248 actual. sort ( ) ;
12491249 let expected: Vec < u64 > = vec ! [
12501250 RowAddress :: new_from_parts( 3 , 2 ) . into( ) ,
@@ -1260,7 +1260,7 @@ pub mod tests {
12601260 . await
12611261 . unwrap ( ) ;
12621262 if let crate :: scalar:: SearchResult :: Exact ( row_ids) = result {
1263- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
1263+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
12641264 actual. sort ( ) ;
12651265 let expected: Vec < u64 > = vec ! [
12661266 RowAddress :: new_from_parts( 3 , 4 ) . into( ) ,
@@ -1276,7 +1276,7 @@ pub mod tests {
12761276 . await
12771277 . unwrap ( ) ;
12781278 if let crate :: scalar:: SearchResult :: Exact ( row_ids) = result {
1279- let mut actual: Vec < u64 > = row_ids. row_ids ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
1279+ let mut actual: Vec < u64 > = row_ids. row_addrs ( ) . unwrap ( ) . map ( u64:: from) . collect ( ) ;
12801280 actual. sort ( ) ;
12811281 assert_eq ! (
12821282 actual, expected_null_addrs,
0 commit comments