pub struct BatchProcessor { /* private fields */ }Expand description
Main batch processor
Implementations§
Source§impl BatchProcessor
impl BatchProcessor
Sourcepub async fn new(config: BatchConfig) -> RragResult<Self>
pub async fn new(config: BatchConfig) -> RragResult<Self>
Create a new batch processor
Sourcepub async fn add_operation(&self, operation: IndexUpdate) -> RragResult<String>
pub async fn add_operation(&self, operation: IndexUpdate) -> RragResult<String>
Add operation to batch processing queue
Sourcepub async fn process_batch(
&self,
batch: BatchOperation,
) -> RragResult<BatchResult>
pub async fn process_batch( &self, batch: BatchOperation, ) -> RragResult<BatchResult>
Process a batch of operations
Sourcepub async fn get_metrics(&self) -> ProcessingMetrics
pub async fn get_metrics(&self) -> ProcessingMetrics
Get current processing metrics
Sourcepub async fn get_queue_stats(&self) -> QueueStats
pub async fn get_queue_stats(&self) -> QueueStats
Get queue statistics
Sourcepub async fn health_check(&self) -> RragResult<bool>
pub async fn health_check(&self) -> RragResult<bool>
Health check
Auto Trait Implementations§
impl Freeze for BatchProcessor
impl !RefUnwindSafe for BatchProcessor
impl Send for BatchProcessor
impl Sync for BatchProcessor
impl Unpin for BatchProcessor
impl !UnwindSafe for BatchProcessor
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