@@ -38,7 +38,7 @@ use lance_core::utils::address::RowAddress;
3838use lance_core:: utils:: tempfile:: TempDir ;
3939use lance_core:: utils:: tokio:: get_num_compute_intensive_cpus;
4040use lance_core:: utils:: tracing:: { IO_TYPE_LOAD_SCALAR_PART , TRACE_IO_EVENTS } ;
41- use lance_core:: { utils:: mask:: RowIdTreeMap , Error } ;
41+ use lance_core:: { utils:: mask:: RowAddrTreeMap , Error } ;
4242use lance_core:: { Result , ROW_ID } ;
4343use lance_io:: object_store:: ObjectStore ;
4444use log:: info;
@@ -451,7 +451,7 @@ impl ScalarIndex for NGramIndex {
451451 TextQuery :: StringContains ( substr) => {
452452 if substr. len ( ) < NGRAM_N {
453453 // We know nothing on short searches, need to recheck all
454- return Ok ( SearchResult :: AtLeast ( RowIdTreeMap :: new ( ) ) ) ;
454+ return Ok ( SearchResult :: AtLeast ( RowAddrTreeMap :: new ( ) ) ) ;
455455 }
456456
457457 let mut row_offsets = Vec :: with_capacity ( substr. len ( ) * 3 ) ;
@@ -466,7 +466,7 @@ impl ScalarIndex for NGramIndex {
466466 } ) ;
467467 // At least one token was missing, so we know there are zero results
468468 if missing {
469- return Ok ( SearchResult :: Exact ( RowIdTreeMap :: new ( ) ) ) ;
469+ return Ok ( SearchResult :: Exact ( RowAddrTreeMap :: new ( ) ) ) ;
470470 }
471471 let posting_lists = futures:: stream:: iter (
472472 row_offsets
@@ -479,7 +479,7 @@ impl ScalarIndex for NGramIndex {
479479 metrics. record_comparisons ( posting_lists. len ( ) ) ;
480480 let list_refs = posting_lists. iter ( ) . map ( |list| list. as_ref ( ) ) ;
481481 let row_ids = NGramPostingList :: intersect ( list_refs) ;
482- Ok ( SearchResult :: AtMost ( RowIdTreeMap :: from ( row_ids) ) )
482+ Ok ( SearchResult :: AtMost ( RowAddrTreeMap :: from ( row_ids) ) )
483483 }
484484 }
485485 }
@@ -1483,7 +1483,7 @@ mod tests {
14831483 . await
14841484 . unwrap ( ) ;
14851485
1486- let expected = SearchResult :: AtMost ( RowIdTreeMap :: from_iter ( [ 0 , 2 , 3 ] ) ) ;
1486+ let expected = SearchResult :: AtMost ( RowAddrTreeMap :: from_iter ( [ 0 , 2 , 3 ] ) ) ;
14871487
14881488 assert_eq ! ( expected, res) ;
14891489
@@ -1506,7 +1506,7 @@ mod tests {
15061506 )
15071507 . await
15081508 . unwrap ( ) ;
1509- let expected = SearchResult :: Exact ( RowIdTreeMap :: new ( ) ) ;
1509+ let expected = SearchResult :: Exact ( RowAddrTreeMap :: new ( ) ) ;
15101510 assert_eq ! ( expected, res) ;
15111511
15121512 // False positive
@@ -1528,7 +1528,7 @@ mod tests {
15281528 )
15291529 . await
15301530 . unwrap ( ) ;
1531- let expected = SearchResult :: AtLeast ( RowIdTreeMap :: new ( ) ) ;
1531+ let expected = SearchResult :: AtLeast ( RowAddrTreeMap :: new ( ) ) ;
15321532 assert_eq ! ( expected, res) ;
15331533
15341534 // One short string but we still get at least one trigram, this is ok
@@ -1578,7 +1578,7 @@ mod tests {
15781578 )
15791579 . await
15801580 . unwrap ( ) ;
1581- let expected = SearchResult :: AtMost ( RowIdTreeMap :: from_iter ( [ 0 , 4 ] ) ) ;
1581+ let expected = SearchResult :: AtMost ( RowAddrTreeMap :: from_iter ( [ 0 , 4 ] ) ) ;
15821582 assert_eq ! ( expected, res) ;
15831583
15841584 let null_posting_list = get_null_posting_list ( & index) . await ;
0 commit comments