springql_core/stream_engine/command/
insert_plan.rs

1// This file is part of https://github.com/SpringQL/SpringQL which is licensed under MIT OR Apache-2.0. See file LICENSE-MIT or LICENSE-APACHE for full license details.
2
3use crate::pipeline::{ColumnName, StreamName};
4
5#[derive(Clone, Eq, PartialEq, Debug, new)]
6pub struct InsertPlan {
7    stream: StreamName,
8    column_order: Vec<ColumnName>,
9}
10
11impl InsertPlan {
12    pub fn stream(&self) -> &StreamName {
13        &self.stream
14    }
15
16    pub fn column_order(&self) -> &[ColumnName] {
17        &self.column_order
18    }
19}