Skip to content

Commit

Permalink
make all fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Jan 28, 2025
1 parent 817e3c4 commit dadf40c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions optd-types/src/operator/logical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ pub enum LogicalOperator<Link> {

/// TODO Add docs.
pub struct LogicalScanOperator<Link> {
table_name: String,
predicate: Link,
pub table_name: String,
pub predicate: Link,
}

/// TODO Add docs.
pub struct LogicalFilterOperator<Link> {
child: Link,
predicate: Link,
pub child: Link,
pub predicate: Link,
}

/// TODO Add docs.
pub struct LogicalJoinOperator<Link> {
join_type: (),
left: Link,
right: Link,
condition: Link,
pub join_type: (),
pub left: Link,
pub right: Link,
pub condition: Link,
}
20 changes: 10 additions & 10 deletions optd-types/src/operator/physical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@
/// [`PartialLogicalPlan`]: crate::plan::partial_logical_plan::PartialLogicalPlan
/// [`PartialPhysicalPlan`]: crate::plan::partial_physical_plan::PartialPhysicalPlan
pub enum PhysicalOperator<Link> {
Scan(TableScanOperator<Link>),
TableScan(TableScanOperator<Link>),
Filter(PhysicalFilterOperator<Link>),
Join(HashJoinOperator<Link>),
HashJoin(HashJoinOperator<Link>),
}

/// TODO Add docs.
pub struct TableScanOperator<Link> {
table_name: String,
predicate: Link,
pub table_name: String,
pub predicate: Link,
}

/// TODO Add docs.
pub struct PhysicalFilterOperator<Link> {
child: Link,
predicate: Link,
pub child: Link,
pub predicate: Link,
}

/// TODO Add docs.
pub struct HashJoinOperator<Link> {
join_type: (),
left: Link,
right: Link,
condition: Link,
pub join_type: (),
pub left: Link,
pub right: Link,
pub condition: Link,
}
2 changes: 1 addition & 1 deletion optd-types/src/plan/logical_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::sync::Arc;
/// operator).
#[derive(Clone)]
pub struct LogicalPlan {
root: Arc<LogicalOperator<LogicalLink>>,
pub root: Arc<LogicalOperator<LogicalLink>>,
}

/// A link in a [`LogicalPlan`] to a node.
Expand Down
2 changes: 1 addition & 1 deletion optd-types/src/plan/physical_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;
/// TODO Add docs.
#[derive(Clone)]
pub struct PhysicalPlan {
root: Arc<PhysicalOperator<PhysicalLink>>,
pub root: Arc<PhysicalOperator<PhysicalLink>>,
}

/// TODO Add docs.
Expand Down

0 comments on commit dadf40c

Please sign in to comment.