pub struct StreamIndex<K: Key> { /* private fields */ }Expand description
Stream-based index for file access
Implementations§
Source§impl<K: Key> StreamIndex<K>
impl<K: Key> StreamIndex<K>
Sourcepub fn new(
num_items: usize,
branching_factor: u16,
index_offset: u64,
length: u64,
) -> Self
pub fn new( num_items: usize, branching_factor: u16, index_offset: u64, length: u64, ) -> Self
Create a new stream index with metadata
Sourcepub fn branching_factor(&self) -> u16
pub fn branching_factor(&self) -> u16
Get the branching factor of the tree
Sourcepub fn index_offset(&self) -> u64
pub fn index_offset(&self) -> u64
Get the index offset
Trait Implementations§
Source§impl<K: Clone + Key> Clone for StreamIndex<K>
impl<K: Clone + Key> Clone for StreamIndex<K>
Source§fn clone(&self) -> StreamIndex<K>
fn clone(&self) -> StreamIndex<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TypedStreamSearchIndex for StreamIndex<DateTime<Utc>>
impl TypedStreamSearchIndex for StreamIndex<DateTime<Utc>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<100>>
impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<100>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<20>>
impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<20>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<50>>
impl TypedStreamSearchIndex for StreamIndex<FixedStringKey<50>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<OrderedFloat<f32>>
impl TypedStreamSearchIndex for StreamIndex<OrderedFloat<f32>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<OrderedFloat<f64>>
impl TypedStreamSearchIndex for StreamIndex<OrderedFloat<f64>>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<bool>
impl TypedStreamSearchIndex for StreamIndex<bool>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<i16>
impl TypedStreamSearchIndex for StreamIndex<i16>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<i32>
impl TypedStreamSearchIndex for StreamIndex<i32>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<i64>
impl TypedStreamSearchIndex for StreamIndex<i64>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<i8>
impl TypedStreamSearchIndex for StreamIndex<i8>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<u16>
impl TypedStreamSearchIndex for StreamIndex<u16>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<u32>
impl TypedStreamSearchIndex for StreamIndex<u32>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<u64>
impl TypedStreamSearchIndex for StreamIndex<u64>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Source§impl TypedStreamSearchIndex for StreamIndex<u8>
impl TypedStreamSearchIndex for StreamIndex<u8>
Source§fn execute_query_condition(
&self,
reader: &mut dyn ReadSeek,
condition: &QueryCondition,
) -> Result<Vec<u64>>
fn execute_query_condition( &self, reader: &mut dyn ReadSeek, condition: &QueryCondition, ) -> Result<Vec<u64>>
Execute the query condition using the provided reader
Auto Trait Implementations§
impl<K> Freeze for StreamIndex<K>
impl<K> RefUnwindSafe for StreamIndex<K>where
K: RefUnwindSafe,
impl<K> Send for StreamIndex<K>where
K: Send,
impl<K> Sync for StreamIndex<K>where
K: Sync,
impl<K> Unpin for StreamIndex<K>where
K: Unpin,
impl<K> UnwindSafe for StreamIndex<K>where
K: UnwindSafe,
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