StandardQueryTransaction

Struct StandardQueryTransaction 

Source
pub struct StandardQueryTransaction { /* private fields */ }
Expand description

An active query transaction that holds a multi query transaction and provides query-only access to single storage.

Implementations§

Source§

impl StandardQueryTransaction

Source

pub fn new( multi: <TransactionMultiVersion as MultiVersionTransaction>::Query, single: TransactionSingleVersion, cdc: TransactionCdc, catalog: MaterializedCatalog, ) -> Self

Creates a new active query transaction

Source

pub fn with_single_query<'a, I, F, R>(&self, keys: I, f: F) -> Result<R>

Execute a function with query access to the single transaction.

Source

pub fn with_multi_query<F, R>(&mut self, f: F) -> Result<R>

Execute a function with access to the multi query transaction. This operates within the same transaction context.

Source

pub fn cdc(&self) -> &TransactionCdc

Get access to the CDC transaction interface

Trait Implementations§

Source§

impl ExecuteQuery<StandardQueryTransaction> for Executor

Source§

fn execute_query( &self, txn: &mut StandardQueryTransaction, qry: Query<'_>, ) -> Result<Vec<Frame>>

Source§

impl ExecuteQuery<StandardQueryTransaction> for StandardEngine

Source§

fn execute_query( &self, txn: &mut StandardQueryTransaction, qry: Query<'_>, ) -> Result<Vec<Frame>>

Source§

impl<'a> From<&'a mut StandardQueryTransaction> for StandardTransaction<'a>

Source§

fn from(txn: &'a mut StandardQueryTransaction) -> Self

Converts to this type from the input type.
Source§

impl MaterializedCatalogTransaction for StandardQueryTransaction

Source§

impl MultiVersionQueryTransaction for StandardQueryTransaction

Source§

fn version(&self) -> CommitVersion

Source§

fn id(&self) -> TransactionId

Source§

fn get(&mut self, key: &EncodedKey) -> Result<Option<MultiVersionValues>>

Source§

fn contains_key(&mut self, key: &EncodedKey) -> Result<bool>

Source§

fn range_batched( &mut self, range: EncodedKeyRange, batch_size: u64, ) -> Result<BoxedMultiVersionIter<'_>>

Source§

fn range_rev_batched( &mut self, range: EncodedKeyRange, batch_size: u64, ) -> Result<BoxedMultiVersionIter<'_>>

Source§

fn prefix(&mut self, prefix: &EncodedKey) -> Result<BoxedMultiVersionIter<'_>>

Source§

fn prefix_rev( &mut self, prefix: &EncodedKey, ) -> Result<BoxedMultiVersionIter<'_>>

Source§

fn read_as_of_version_exclusive(&mut self, version: CommitVersion) -> Result<()>

Source§

fn range( &mut self, range: EncodedKeyRange, ) -> Result<Box<dyn Iterator<Item = MultiVersionValues> + Send + '_>, Error>

Source§

fn range_rev( &mut self, range: EncodedKeyRange, ) -> Result<Box<dyn Iterator<Item = MultiVersionValues> + Send + '_>, Error>

Source§

fn read_as_of_version_inclusive( &mut self, version: CommitVersion, ) -> Result<(), Error>

Source§

impl QueryTransaction for StandardQueryTransaction

Source§

type SingleVersionQuery<'a> = <TransactionSingleVersion as SingleVersionTransaction>::Query<'a>

Source§

type CdcQuery<'a> = <TransactionCdc as CdcTransaction>::Query<'a> where Self: 'a

Source§

fn begin_single_query<'a, I>( &self, keys: I, ) -> Result<Self::SingleVersionQuery<'_>>
where I: IntoIterator<Item = &'a EncodedKey>,

Source§

fn begin_cdc_query(&self) -> Result<Self::CdcQuery<'_>>

Source§

fn with_single_query<'a, I, F, R>(&self, keys: I, f: F) -> Result<R, Error>
where I: IntoIterator<Item = &'a EncodedKey>, F: FnOnce(&mut Self::SingleVersionQuery<'_>) -> Result<R, Error>,

Source§

fn with_cdc_query<F, R>(&self, f: F) -> Result<R, Error>
where F: FnOnce(&mut Self::CdcQuery<'_>) -> Result<R, Error>,

Source§

impl TransactionalDictionaryChanges for StandardQueryTransaction

Source§

impl TransactionalFlowChanges for StandardQueryTransaction

Source§

fn find_flow(&self, _id: FlowId) -> Option<&FlowDef>

Source§

fn find_flow_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> Option<&FlowDef>

Source§

fn is_flow_deleted(&self, _id: FlowId) -> bool

Source§

fn is_flow_deleted_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> bool

Source§

impl TransactionalNamespaceChanges for StandardQueryTransaction

Source§

impl TransactionalRingBufferChanges for StandardQueryTransaction

Source§

impl TransactionalTableChanges for StandardQueryTransaction

Source§

fn find_table(&self, _id: TableId) -> Option<&TableDef>

Source§

fn find_table_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> Option<&TableDef>

Source§

fn is_table_deleted(&self, _id: TableId) -> bool

Source§

fn is_table_deleted_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> bool

Source§

impl TransactionalViewChanges for StandardQueryTransaction

Source§

fn find_view(&self, _id: ViewId) -> Option<&ViewDef>

Source§

fn find_view_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> Option<&ViewDef>

Source§

fn is_view_deleted(&self, _id: ViewId) -> bool

Source§

fn is_view_deleted_by_name<'a>( &self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> bool

Source§

impl Execute<StandardCommandTransaction, StandardQueryTransaction> for Executor

Source§

impl TransactionalChanges for StandardQueryTransaction

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<QT> CatalogDictionaryQueryOperations for QT

Source§

impl<QT> CatalogFlowQueryOperations for QT

Source§

fn find_flow(&mut self, id: FlowId) -> Result<Option<FlowDef>, Error>

Source§

fn find_flow_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<Option<FlowDef>, Error>

Source§

fn get_flow(&mut self, id: FlowId) -> Result<FlowDef, Error>

Source§

fn get_flow_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<FlowDef, Error>

Source§

impl<QT> CatalogNamespaceQueryOperations for QT

Source§

impl<QT> CatalogRingBufferQueryOperations for QT

Source§

impl<T> CatalogSourceQueryOperations for T

Source§

fn find_source_by_name<'a>( &mut self, _namespace: NamespaceId, _source: impl IntoFragment<'a>, ) -> Result<Option<SourceDef>, Error>

Source§

fn find_source(&mut self, id: SourceId) -> Result<Option<SourceDef>, Error>

Source§

fn get_source(&mut self, id: SourceId) -> Result<SourceDef, Error>

Source§

fn get_source_by_name<'a>( &mut self, _namespace: NamespaceId, _name: impl IntoFragment<'a>, ) -> Result<SourceDef, Error>

Source§

impl<QT> CatalogTableQueryOperations for QT

Source§

fn find_table(&mut self, id: TableId) -> Result<Option<TableDef>, Error>

Source§

fn find_table_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<Option<TableDef>, Error>

Source§

fn get_table(&mut self, id: TableId) -> Result<TableDef, Error>

Source§

fn get_table_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<TableDef, Error>

Source§

impl<T> CatalogTableVirtualUserQueryOperations for T

Source§

fn find_table_virtual_user_by_name( &self, namespace: NamespaceId, name: &str, ) -> Option<Arc<TableVirtualDef>>

Find a user-defined virtual table by namespace and name.
Source§

impl<QT> CatalogViewQueryOperations for QT

Source§

fn find_view(&mut self, id: ViewId) -> Result<Option<ViewDef>, Error>

Source§

fn find_view_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<Option<ViewDef>, Error>

Source§

fn get_view(&mut self, id: ViewId) -> Result<ViewDef, Error>

Source§

fn get_view_by_name<'a>( &mut self, namespace: NamespaceId, name: impl IntoFragment<'a>, ) -> Result<ViewDef, Error>

§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<QT> CatalogQueryTransaction for QT