pub enum FlowNodeType {
Show 22 variants
SourceInlineData {},
SourceTable {
table: TableId,
},
SourceView {
view: ViewId,
},
SourceFlow {
flow: FlowId,
},
SourceRingBuffer {
ringbuffer: RingBufferId,
},
SourceSeries {
series: SeriesId,
},
Filter {
conditions: Vec<Expression>,
},
Gate {
conditions: Vec<Expression>,
},
Map {
expressions: Vec<Expression>,
},
Extend {
expressions: Vec<Expression>,
},
Join {
join_type: JoinType,
left: Vec<Expression>,
right: Vec<Expression>,
alias: Option<String>,
},
Aggregate {
by: Vec<Expression>,
map: Vec<Expression>,
},
Append,
Sort {
by: Vec<SortKey>,
},
Take {
limit: usize,
},
Distinct {
expressions: Vec<Expression>,
},
Apply {
operator: String,
expressions: Vec<Expression>,
},
SinkTableView {
view: ViewId,
table: TableId,
},
SinkRingBufferView {
view: ViewId,
ringbuffer: RingBufferId,
capacity: u64,
propagate_evictions: bool,
},
SinkSeriesView {
view: ViewId,
series: SeriesId,
key: SeriesKey,
},
SinkSubscription {
subscription: SubscriptionId,
},
Window {
kind: WindowKind,
group_by: Vec<Expression>,
aggregations: Vec<Expression>,
ts: Option<String>,
},
}Variants§
SourceInlineData
SourceTable
SourceView
SourceFlow
SourceRingBuffer
Fields
§
ringbuffer: RingBufferIdSourceSeries
Filter
Fields
§
conditions: Vec<Expression>Gate
Fields
§
conditions: Vec<Expression>Map
Fields
§
expressions: Vec<Expression>Extend
Fields
§
expressions: Vec<Expression>Join
Aggregate
Append
Sort
Take
Distinct
Fields
§
expressions: Vec<Expression>Apply
SinkTableView
SinkRingBufferView
SinkSeriesView
SinkSubscription
Fields
§
subscription: SubscriptionIdWindow
Implementations§
Source§impl FlowNodeType
impl FlowNodeType
Sourcepub fn discriminator(&self) -> u8
pub fn discriminator(&self) -> u8
Returns a discriminator value for this node type variant. Must match indices in FLOW_NODE_TYPE_NAMES in catalog/vtable/system/flow_node_types.rs
Sourcepub fn primitive_source_shape_id(&self) -> Option<ShapeId>
pub fn primitive_source_shape_id(&self) -> Option<ShapeId>
If this node is a primitive data source (table, ring buffer, or series),
returns its ShapeId. Returns None for all other node types.
Uses an exhaustive match so that adding a new variant to FlowNodeType
produces a compiler error, forcing the author to decide whether the new
variant is a primitive source.
Trait Implementations§
Source§impl Clone for FlowNodeType
impl Clone for FlowNodeType
Source§fn clone(&self) -> FlowNodeType
fn clone(&self) -> FlowNodeType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlowNodeType
impl Debug for FlowNodeType
Source§impl<'de> Deserialize<'de> for FlowNodeType
impl<'de> Deserialize<'de> for FlowNodeType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FlowNodeType
impl RefUnwindSafe for FlowNodeType
impl Send for FlowNodeType
impl Sync for FlowNodeType
impl Unpin for FlowNodeType
impl UnsafeUnpin for FlowNodeType
impl UnwindSafe for FlowNodeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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 more