pub trait ArrowHashTable {
// Required methods
fn set_batch(&mut self, ids: ArrayRef);
fn len(&self) -> usize;
unsafe fn update_heap_idx(&mut self, mapper: &[(usize, usize)]);
unsafe fn heap_idx_at(&self, map_idx: usize) -> usize;
unsafe fn take_all(&mut self, indexes: Vec<usize>) -> ArrayRef;
unsafe fn find_or_insert(
&mut self,
row_idx: usize,
replace_idx: usize,
map: &mut Vec<(usize, usize)>,
) -> (usize, bool);
}Expand description
An interface to hide the generic type signature of TopKHashTable behind arrow arrays