[][src]Trait ieql::scan::scanner::Scanner

pub trait Scanner: Clone + Send {
    fn scan_batch(&self, documents: &CompiledDocumentBatch) -> OutputBatch;
fn scan_single(&self, document: &CompiledDocument) -> OutputBatch;
fn scan_concurrently(&self, threads: u8) -> AsyncScanInterface; }

This trait specifies basic scanning functionality.

Required methods

fn scan_batch(&self, documents: &CompiledDocumentBatch) -> OutputBatch

Scan a batch of documents and return the output. This function is singlethreaded and often not very performant.

fn scan_single(&self, document: &CompiledDocument) -> OutputBatch

Scan a single document and return the output.

fn scan_concurrently(&self, threads: u8) -> AsyncScanInterface

Launch a 'scan engine' and create an asynchronous and concurrent scanning system. In most cases, this is what you'll want to use.

For more information about how to interact with the scanning system (sometimes referred to as the scan engine), please see the documentation pertaining to AsyncScanInterface.

Loading content...

Implementors

Loading content...