pub struct CompiledQuery {
pub response: Response,
pub scope: CompiledScope,
pub threshold: Threshold,
pub triggers: Vec<CompiledTrigger>,
pub id: Option<String>,
}
Expand description
Represents a compiled query which is ready to scan (compiled)
documents (CompiledDocument
).
For more information about each of these fields, please see the
Query
documentation.
Fields§
§response: Response
§scope: CompiledScope
§threshold: Threshold
§triggers: Vec<CompiledTrigger>
§id: Option<String>
Trait Implementations§
Source§impl Clone for CompiledQuery
impl Clone for CompiledQuery
Source§fn clone(&self) -> CompiledQuery
fn clone(&self) -> CompiledQuery
Returns a copy 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 CompilableTo<CompiledQuery> for Query
impl CompilableTo<CompiledQuery> for Query
Source§impl From<CompiledQuery> for CompiledQueryGroup
impl From<CompiledQuery> for CompiledQueryGroup
Source§fn from(query: CompiledQuery) -> CompiledQueryGroup
fn from(query: CompiledQuery) -> CompiledQueryGroup
This helper function creates a CompiledQueryGroup
for single queries, enabling multithreading support for
single queries without any significant ‘hacks.’
Source§impl Scanner for CompiledQuery
impl Scanner for CompiledQuery
Source§fn scan_single(&self, document: &CompiledDocument) -> OutputBatch
fn scan_single(&self, document: &CompiledDocument) -> OutputBatch
Scan a single document and return the output.
Source§fn scan_batch(&self, documents: &CompiledDocumentBatch) -> OutputBatch
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.
Source§fn scan_concurrently(&self, threads: u8) -> AsyncScanInterface
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. Read more
Auto Trait Implementations§
impl !Freeze for CompiledQuery
impl !RefUnwindSafe for CompiledQuery
impl Send for CompiledQuery
impl Sync for CompiledQuery
impl Unpin for CompiledQuery
impl UnwindSafe for CompiledQuery
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