Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions rust/lance-index/src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,15 @@ impl OldIndexDataFilter {
.collect(),
}
}

/// Filter a posting list of row addresses in place, retaining only the rows
/// selected by this filter.
pub fn retain_row_addrs(&self, addrs: &mut RowAddrTreeMap) {
match self {
Self::Fragments { to_keep, .. } => addrs.retain_fragments_in(to_keep),
Self::RowIds(valid_row_ids) => *addrs &= valid_row_ids,
}
}
}

impl UpdateCriteria {
Expand Down
Loading
Loading