pub trait IndexCreator: Send {
// Required methods
fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut Batch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_flat<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn finish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
writer: &'life1 mut SstPuffinWriter,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompletedEntry>, BoxedError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn abort<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn memory_usage(&self) -> usize;
// Provided methods
fn requires_row_scan(&self) -> bool { ... }
fn indexed_targets(&self) -> Vec<IndexTarget> { ... }
fn needs_dense_pk(&self) -> bool { ... }
}Expand description
Accumulates rows and writes blobs into the engine-owned Puffin lifecycle. Implementations release retained state on drop, including cancellation.
Required Methods§
Sourcefn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut Batch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 mut Batch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Borrows a batch and its reusable primary-key decode cache.
Sourcefn update_flat<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_flat<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: &'life1 RecordBatch,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Borrows array data; cloning shared array handles is allowed.
Sourcefn finish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
writer: &'life1 mut SstPuffinWriter,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompletedEntry>, BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn finish<'life0, 'life1, 'async_trait>(
&'life0 mut self,
writer: &'life1 mut SstPuffinWriter,
) -> Pin<Box<dyn Future<Output = Result<Vec<CompletedEntry>, BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Writes completed entries. Publication waits for the engine to close Puffin.
The creator is dropped afterward, including on error, without calling its
abort method; implementations must finalize their own temporary resources.
Sourcefn abort<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abort<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), BoxedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Releases temporary resources; the engine owns final-file cleanup.
Sourcefn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Estimated retained memory, not exact allocator or process RSS accounting.
Provided Methods§
Sourcefn requires_row_scan(&self) -> bool
fn requires_row_scan(&self) -> bool
Whether rebuilding this index requires scanning SST rows after preparation. A creator reusing persisted state must account for output rows without updates.
Sourcefn indexed_targets(&self) -> Vec<IndexTarget>
fn indexed_targets(&self) -> Vec<IndexTarget>
Targets needed when preparing the shared dense primary-key decoder.
Sourcefn needs_dense_pk(&self) -> bool
fn needs_dense_pk(&self) -> bool
Whether this creator participates in existing dense-key predecoding.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".