pub struct SourceIndex { /* private fields */ }Implementations§
Source§impl SourceIndex
impl SourceIndex
pub fn new(key_column: &str) -> Self
pub fn with_key_type(key_column: &str, key_type: KeyType) -> Self
pub fn with_filter(self, filter: XorFilter) -> Self
pub fn key_type(&self) -> KeyType
pub fn insert( &mut self, key: String, offset: u64, row_length: u32, ) -> Result<()>
pub fn batch_insert( &mut self, entries: impl IntoIterator<Item = (String, u64, u32)>, ) -> Result<()>
pub fn lookup(&self, key: &str) -> Option<&IndexEntry>
pub fn lookup_all(&self, key: &str) -> Option<&[IndexEntry]>
pub fn contains(&self, key: &str) -> bool
pub fn fast_negative_lookup(&self, key: &str) -> bool
pub fn lookup_range(&self, start: &str, end: &str) -> Vec<&IndexEntry>
pub fn len(&self) -> usize
pub fn unique_keys_len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn entry_count(&self) -> u32
pub fn index_version(&self) -> u32
pub fn iter(&self) -> impl Iterator<Item = (&str, &IndexEntry)>
pub fn write_to_file(&mut self, path: &Path) -> Result<()>
pub fn read_from_file(path: &Path) -> Result<Self>
pub fn lookup_row<R: Read + Seek>( &self, reader: &mut R, key: &str, ) -> Result<Option<String>>
pub fn lookup_row_from_mmap( &self, mmap_data: &[u8], key: &str, ) -> Result<Option<String>>
pub fn key_column(&self) -> &str
Auto Trait Implementations§
impl Freeze for SourceIndex
impl RefUnwindSafe for SourceIndex
impl Send for SourceIndex
impl Sync for SourceIndex
impl Unpin for SourceIndex
impl UnsafeUnpin for SourceIndex
impl UnwindSafe for SourceIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more