pub trait IndexKindProvider: Send + Sync {
// Required methods
fn kind(&self) -> IndexKind;
fn build(
&self,
source: &RecordBatch,
options: &str,
) -> Result<Box<dyn IndexBuild>, FnError>;
fn open(&self, persisted: &[u8]) -> Result<Box<dyn IndexHandle>, FnError>;
}Expand description
An index-kind provider that knows how to build / open / probe / persist a custom index.
Required Methods§
Sourcefn build(
&self,
source: &RecordBatch,
options: &str,
) -> Result<Box<dyn IndexBuild>, FnError>
fn build( &self, source: &RecordBatch, options: &str, ) -> Result<Box<dyn IndexBuild>, FnError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".