pub struct IncrementalAlgorithmProcessor { /* private fields */ }
Expand description
Incremental algorithm processor for streaming updates
Implementations§
Source§impl IncrementalAlgorithmProcessor
impl IncrementalAlgorithmProcessor
Sourcepub fn set_invalidation_threshold(&mut self, threshold: u64)
pub fn set_invalidation_threshold(&mut self, threshold: u64)
Set the cache invalidation threshold
Sourcepub fn is_cache_valid(
&self,
algorithm_name: &str,
current_update_count: u64,
) -> bool
pub fn is_cache_valid( &self, algorithm_name: &str, current_update_count: u64, ) -> bool
Check if cached result is still valid
Sourcepub fn cache_result(
&mut self,
algorithm_name: String,
update_count: u64,
result: RecordBatch,
)
pub fn cache_result( &mut self, algorithm_name: String, update_count: u64, result: RecordBatch, )
Cache algorithm result
Sourcepub fn get_cached_result(
&self,
algorithm_name: &str,
current_update_count: u64,
) -> Option<RecordBatch>
pub fn get_cached_result( &self, algorithm_name: &str, current_update_count: u64, ) -> Option<RecordBatch>
Get cached result if valid
Sourcepub fn invalidate_cache(&mut self, algorithm_name: &str)
pub fn invalidate_cache(&mut self, algorithm_name: &str)
Invalidate cache for specific algorithm
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear all cached results
Sourcepub fn get_cache_statistics(&self) -> CacheStatistics
pub fn get_cache_statistics(&self) -> CacheStatistics
Get cache statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncrementalAlgorithmProcessor
impl !RefUnwindSafe for IncrementalAlgorithmProcessor
impl Send for IncrementalAlgorithmProcessor
impl Sync for IncrementalAlgorithmProcessor
impl Unpin for IncrementalAlgorithmProcessor
impl !UnwindSafe for IncrementalAlgorithmProcessor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more