pub struct ChangeDetector { /* private fields */ }Expand description
Change detection system
Implementations§
Source§impl ChangeDetector
impl ChangeDetector
Sourcepub async fn new(config: ChangeDetectionConfig) -> RragResult<Self>
pub async fn new(config: ChangeDetectionConfig) -> RragResult<Self>
Create a new change detector
Sourcepub async fn detect_changes(
&self,
document: &Document,
) -> RragResult<ChangeResult>
pub async fn detect_changes( &self, document: &Document, ) -> RragResult<ChangeResult>
Detect changes in a document
Sourcepub async fn detect_changes_with_chunks(
&self,
document: &Document,
chunks: &[DocumentChunk],
) -> RragResult<ChangeResult>
pub async fn detect_changes_with_chunks( &self, document: &Document, chunks: &[DocumentChunk], ) -> RragResult<ChangeResult>
Detect changes with chunked document
Sourcepub async fn get_change_history(
&self,
document_id: &str,
) -> RragResult<Vec<DocumentChange>>
pub async fn get_change_history( &self, document_id: &str, ) -> RragResult<Vec<DocumentChange>>
Get change history for a document
Sourcepub async fn get_stats(&self) -> ChangeDetectionStats
pub async fn get_stats(&self) -> ChangeDetectionStats
Get change detection statistics
Sourcepub async fn clear_history(&self) -> RragResult<()>
pub async fn clear_history(&self) -> RragResult<()>
Clear change history
Sourcepub async fn health_check(&self) -> RragResult<bool>
pub async fn health_check(&self) -> RragResult<bool>
Health check
Auto Trait Implementations§
impl !Freeze for ChangeDetector
impl !RefUnwindSafe for ChangeDetector
impl Send for ChangeDetector
impl Sync for ChangeDetector
impl Unpin for ChangeDetector
impl !UnwindSafe for ChangeDetector
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