Skip to content

Commit dadf40c

Browse files
committed
make all fields public
1 parent 817e3c4 commit dadf40c

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

optd-types/src/operator/logical.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ pub enum LogicalOperator<Link> {
2424

2525
/// TODO Add docs.
2626
pub struct LogicalScanOperator<Link> {
27-
table_name: String,
28-
predicate: Link,
27+
pub table_name: String,
28+
pub predicate: Link,
2929
}
3030

3131
/// TODO Add docs.
3232
pub struct LogicalFilterOperator<Link> {
33-
child: Link,
34-
predicate: Link,
33+
pub child: Link,
34+
pub predicate: Link,
3535
}
3636

3737
/// TODO Add docs.
3838
pub struct LogicalJoinOperator<Link> {
39-
join_type: (),
40-
left: Link,
41-
right: Link,
42-
condition: Link,
39+
pub join_type: (),
40+
pub left: Link,
41+
pub right: Link,
42+
pub condition: Link,
4343
}

optd-types/src/operator/physical.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@
1818
/// [`PartialLogicalPlan`]: crate::plan::partial_logical_plan::PartialLogicalPlan
1919
/// [`PartialPhysicalPlan`]: crate::plan::partial_physical_plan::PartialPhysicalPlan
2020
pub enum PhysicalOperator<Link> {
21-
Scan(TableScanOperator<Link>),
21+
TableScan(TableScanOperator<Link>),
2222
Filter(PhysicalFilterOperator<Link>),
23-
Join(HashJoinOperator<Link>),
23+
HashJoin(HashJoinOperator<Link>),
2424
}
2525

2626
/// TODO Add docs.
2727
pub struct TableScanOperator<Link> {
28-
table_name: String,
29-
predicate: Link,
28+
pub table_name: String,
29+
pub predicate: Link,
3030
}
3131

3232
/// TODO Add docs.
3333
pub struct PhysicalFilterOperator<Link> {
34-
child: Link,
35-
predicate: Link,
34+
pub child: Link,
35+
pub predicate: Link,
3636
}
3737

3838
/// TODO Add docs.
3939
pub struct HashJoinOperator<Link> {
40-
join_type: (),
41-
left: Link,
42-
right: Link,
43-
condition: Link,
40+
pub join_type: (),
41+
pub left: Link,
42+
pub right: Link,
43+
pub condition: Link,
4444
}

optd-types/src/plan/logical_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::sync::Arc;
1313
/// operator).
1414
#[derive(Clone)]
1515
pub struct LogicalPlan {
16-
root: Arc<LogicalOperator<LogicalLink>>,
16+
pub root: Arc<LogicalOperator<LogicalLink>>,
1717
}
1818

1919
/// A link in a [`LogicalPlan`] to a node.

optd-types/src/plan/physical_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::Arc;
44
/// TODO Add docs.
55
#[derive(Clone)]
66
pub struct PhysicalPlan {
7-
root: Arc<PhysicalOperator<PhysicalLink>>,
7+
pub root: Arc<PhysicalOperator<PhysicalLink>>,
88
}
99

1010
/// TODO Add docs.

0 commit comments

Comments
 (0)