pub struct MatchRecognizeSpec<E> {
pub partition_by: Vec<E>,
pub order_by: Vec<MatchRecognizeSortExpr<E>>,
pub source_rows_per_match: RowsPerMatch,
pub after_match_skip: AfterMatchSkip,
pub pattern: Pattern,
pub symbols: Vec<String>,
pub definitions: Vec<MatchRecognizeDefinition<E>>,
pub measures: Vec<MatchRecognizeMeasure<E>>,
pub output: MatchRecognizeOutputContract<E>,
}Expand description
Source-level MATCH_RECOGNIZE specification shared by importers.
Fields§
§partition_by: Vec<E>PARTITION BY expressions.
order_by: Vec<MatchRecognizeSortExpr<E>>ORDER BY expressions and sort options.
source_rows_per_match: RowsPerMatchONE ROW PER MATCH / ALL ROWS PER MATCH source output mode.
after_match_skip: AfterMatchSkipAFTER MATCH SKIP behavior.
pattern: PatternSource pattern AST.
symbols: Vec<String>Complete declared pattern-symbol domain in importer order.
Planning canonicalizes case-insensitive names into deterministic order before assigning numeric identifiers.
definitions: Vec<MatchRecognizeDefinition<E>>DEFINE predicates keyed by symbol.
measures: Vec<MatchRecognizeMeasure<E>>MEASURES expressions.
output: MatchRecognizeOutputContract<E>How the consumer should build the output projection.
Implementations§
Source§impl<E> MatchRecognizeSpec<E>
impl<E> MatchRecognizeSpec<E>
Sourcepub fn try_new(self) -> MatchRecognizeSpecResult<Self>
pub fn try_new(self) -> MatchRecognizeSpecResult<Self>
Validate and return a source-level spec.
Sourcepub fn validate(&self) -> MatchRecognizeSpecResult<()>
pub fn validate(&self) -> MatchRecognizeSpecResult<()>
Check the symbol and name rules for an unbound source specification.
Trait Implementations§
Source§impl<E: Clone> Clone for MatchRecognizeSpec<E>
impl<E: Clone> Clone for MatchRecognizeSpec<E>
Source§impl<E: Debug> Debug for MatchRecognizeSpec<E>
impl<E: Debug> Debug for MatchRecognizeSpec<E>
impl<E: Eq> Eq for MatchRecognizeSpec<E>
Source§impl<E: Hash> Hash for MatchRecognizeSpec<E>
impl<E: Hash> Hash for MatchRecognizeSpec<E>
Source§impl<E: PartialEq> PartialEq for MatchRecognizeSpec<E>
impl<E: PartialEq> PartialEq for MatchRecognizeSpec<E>
impl<E: PartialEq> StructuralPartialEq for MatchRecognizeSpec<E>
Auto Trait Implementations§
impl<E> Forget for MatchRecognizeSpec<E>
impl<E> Freeze for MatchRecognizeSpec<E>where
*const u8 is !null: Freeze,
PhantomData<E>: Freeze,
PhantomData<MatchRecognizeSortExpr<E>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Symbol>: Freeze,
PhantomData<Pattern>: Freeze,
*const Pattern is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<MatchRecognizeDefinition<E>>: Freeze,
PhantomData<MatchRecognizeMeasure<E>>: Freeze,
PhantomData<MatchRecognizeNamedExpression<E>>: Freeze,
impl<E> Move for MatchRecognizeSpec<E>
impl<E> RefUnwindSafe for MatchRecognizeSpec<E>where
E: RefUnwindSafe,
impl<E> Send for MatchRecognizeSpec<E>
impl<E> Sync for MatchRecognizeSpec<E>
impl<E> Unpin for MatchRecognizeSpec<E>
impl<E> UnsafeUnpin for MatchRecognizeSpec<E>where
*const u8 is !null: UnsafeUnpin,
PhantomData<E>: UnsafeUnpin,
PhantomData<MatchRecognizeSortExpr<E>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Symbol>: UnsafeUnpin,
PhantomData<Pattern>: UnsafeUnpin,
*const Pattern is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MatchRecognizeDefinition<E>>: UnsafeUnpin,
PhantomData<MatchRecognizeMeasure<E>>: UnsafeUnpin,
PhantomData<MatchRecognizeNamedExpression<E>>: UnsafeUnpin,
impl<E> UnwindSafe for MatchRecognizeSpec<E>
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more