5656 * RelVisitor to convert Substrait Rel plan to Calcite RelNode plan. Unsupported Rel node will call
5757 * visitFallback and throw UnsupportedOperationException.
5858 */
59- public class SubstraitRelNodeConverter extends AbstractRelVisitor <RelNode , RuntimeException > {
59+ public class SubstraitToCalciteVisitor extends AbstractRelVisitor <RelNode , RuntimeException > {
6060
6161 protected final RelDataTypeFactory typeFactory ;
6262
@@ -68,7 +68,7 @@ public class SubstraitRelNodeConverter extends AbstractRelVisitor<RelNode, Runti
6868 protected final RexBuilder rexBuilder ;
6969 private final TypeConverter typeConverter ;
7070
71- public SubstraitRelNodeConverter (
71+ public SubstraitToCalciteVisitor (
7272 SimpleExtension .ExtensionCollection extensions ,
7373 RelDataTypeFactory typeFactory ,
7474 RelBuilder relBuilder ) {
@@ -81,7 +81,7 @@ public SubstraitRelNodeConverter(
8181 TypeConverter .DEFAULT );
8282 }
8383
84- public SubstraitRelNodeConverter (
84+ public SubstraitToCalciteVisitor (
8585 RelDataTypeFactory typeFactory ,
8686 RelBuilder relBuilder ,
8787 ScalarFunctionConverter scalarFunctionConverter ,
@@ -99,7 +99,7 @@ public SubstraitRelNodeConverter(
9999 typeFactory , scalarFunctionConverter , windowFunctionConverter , typeConverter ));
100100 }
101101
102- public SubstraitRelNodeConverter (
102+ public SubstraitToCalciteVisitor (
103103 RelDataTypeFactory typeFactory ,
104104 RelBuilder relBuilder ,
105105 ScalarFunctionConverter scalarFunctionConverter ,
@@ -132,7 +132,7 @@ public static RelNode convert(
132132 .build ());
133133
134134 return relRoot .accept (
135- new SubstraitRelNodeConverter (
135+ new SubstraitToCalciteVisitor (
136136 EXTENSION_COLLECTION , relOptCluster .getTypeFactory (), relBuilder ));
137137 }
138138
0 commit comments