pub struct NativeOperatorContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> NativeOperatorContext<'a>
impl<'a> NativeOperatorContext<'a>
pub fn new(bridge: &'a mut (dyn NativeBridge + 'a), node: FlowNodeId) -> Self
pub fn take_diffs(&mut self) -> Vec<Diff>
Trait Implementations§
Source§impl OperatorContext for NativeOperatorContext<'_>
impl OperatorContext for NativeOperatorContext<'_>
type InsertEmit<'a> = NativeRowEmit<'a> where Self: 'a
type UpdateEmit<'a> = NativeUpdateEmit<'a> where Self: 'a
type RemoveEmit<'a> = NativeRowEmit<'a> where Self: 'a
fn operator_id(&self) -> FlowNodeId
fn clock_now_nanos(&self) -> u64
fn state(&mut self) -> impl StateApi + '_
fn internal_state(&mut self) -> impl InternalStateApi + '_
fn store(&mut self) -> impl StoreApi + '_
fn catalog(&mut self) -> impl CatalogApi + '_
fn dictionary(&mut self) -> impl DictionaryApi + '_
fn get_or_create_row_number( &mut self, key: &EncodedKey, ) -> SdkResult<(RowNumber, bool)>
fn get_or_create_row_numbers( &mut self, keys: &[EncodedKey], ) -> SdkResult<Vec<(RowNumber, bool)>>
Source§fn allocate_row_numbers(&mut self, count: u64) -> SdkResult<RowNumber>
fn allocate_row_numbers(&mut self, count: u64) -> SdkResult<RowNumber>
Reserve
count fresh, globally-unique output row numbers for this operator and return the start
of the [start, start + count) range. Backed by the host’s process-shared in-memory allocator so
it is immune to the committing transaction’s MVCC snapshot (unlike a counter read from the store).fn shape_for_row(&mut self, row: &EncodedRow) -> SdkResult<RowShape>
fn insert_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<NativeRowEmit<'_>>
fn update_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<NativeUpdateEmit<'_>>
fn remove_emit<R: Row>( &mut self, _row_capacity: usize, ) -> SdkResult<NativeRowEmit<'_>>
fn emit_insert<R>(
&mut self,
rows: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
fn emit_update<R>(
&mut self,
pre: &[R],
post: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
fn emit_remove<R>(
&mut self,
rows: &[R],
row_numbers: &[RowNumber],
) -> Result<(), SdkError>where
R: Row,
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NativeOperatorContext<'a>
impl<'a> !Send for NativeOperatorContext<'a>
impl<'a> !Sync for NativeOperatorContext<'a>
impl<'a> !UnwindSafe for NativeOperatorContext<'a>
impl<'a> Freeze for NativeOperatorContext<'a>
impl<'a> Unpin for NativeOperatorContext<'a>
impl<'a> UnsafeUnpin for NativeOperatorContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request