pub trait TableMutationHandler: Send + Sync {
// Required methods
fn insert<'life0, 'async_trait>(
&'life0 self,
request: InsertRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: DeleteRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn flush<'life0, 'async_trait>(
&'life0 self,
request: FlushTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compact<'life0, 'async_trait>(
&'life0 self,
request: CompactTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn flush_region<'life0, 'async_trait>(
&'life0 self,
region_id: RegionId,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compact_region<'life0, 'async_trait>(
&'life0 self,
region_id: RegionId,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait for handling table mutations in QueryEngine
.
Required Methods§
sourcefn insert<'life0, 'async_trait>(
&'life0 self,
request: InsertRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
request: InsertRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Inserts rows into the table.
sourcefn delete<'life0, 'async_trait>(
&'life0 self,
request: DeleteRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: DeleteRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete rows from the table.
sourcefn flush<'life0, 'async_trait>(
&'life0 self,
request: FlushTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn flush<'life0, 'async_trait>(
&'life0 self,
request: FlushTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trigger a flush task for table.
sourcefn compact<'life0, 'async_trait>(
&'life0 self,
request: CompactTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compact<'life0, 'async_trait>(
&'life0 self,
request: CompactTableRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<AffectedRows>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trigger a compaction task for table.