|
23 | 23 | import org.apache.seatunnel.api.source.SeaTunnelSource;
|
24 | 24 | import org.apache.seatunnel.api.table.catalog.CatalogTable;
|
25 | 25 | import org.apache.seatunnel.api.table.catalog.CatalogTableUtil;
|
26 |
| -import org.apache.seatunnel.api.table.type.SeaTunnelDataType; |
27 | 26 | import org.apache.seatunnel.api.table.type.SeaTunnelRow;
|
28 | 27 | import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
|
29 |
| -import org.apache.seatunnel.api.transform.SeaTunnelTransform; |
30 | 28 | import org.apache.seatunnel.common.constants.CollectionConstants;
|
31 | 29 | import org.apache.seatunnel.core.starter.execution.PluginUtil;
|
32 | 30 | import org.apache.seatunnel.engine.common.config.JobConfig;
|
33 | 31 | import org.apache.seatunnel.engine.common.utils.IdGenerator;
|
34 | 32 | import org.apache.seatunnel.engine.core.dag.actions.Action;
|
35 | 33 | import org.apache.seatunnel.engine.core.dag.actions.SinkAction;
|
36 | 34 | import org.apache.seatunnel.engine.core.dag.actions.SourceAction;
|
37 |
| -import org.apache.seatunnel.engine.core.dag.actions.TransformAction; |
38 | 35 |
|
39 | 36 | import org.apache.commons.lang3.tuple.ImmutablePair;
|
40 | 37 |
|
@@ -99,38 +96,6 @@ public Tuple2<CatalogTable, Action> parseSource(
|
99 | 96 | return new Tuple2<>(catalogTable, action);
|
100 | 97 | }
|
101 | 98 |
|
102 |
| - public Tuple2<CatalogTable, Action> parseTransform( |
103 |
| - Config config, |
104 |
| - JobConfig jobConfig, |
105 |
| - String tableId, |
106 |
| - int parallelism, |
107 |
| - SeaTunnelRowType rowType, |
108 |
| - Set<Action> inputActions) { |
109 |
| - final ImmutablePair<SeaTunnelTransform<?>, Set<URL>> tuple = |
110 |
| - ConnectorInstanceLoader.loadTransformInstance( |
111 |
| - config, jobConfig.getJobContext(), commonPluginJars); |
112 |
| - final SeaTunnelTransform<?> transform = tuple.getLeft(); |
113 |
| - // old logic: prepare(initialization) -> set job context -> set row type (There is a logical |
114 |
| - // judgment that depends on before and after, not a simple set) |
115 |
| - transform.prepare(config); |
116 |
| - transform.setJobContext(jobConfig.getJobContext()); |
117 |
| - transform.setTypeInfo((SeaTunnelDataType) rowType); |
118 |
| - final String actionName = createTransformActionName(0, tuple.getLeft().getPluginName()); |
119 |
| - final TransformAction action = |
120 |
| - new TransformAction( |
121 |
| - idGenerator.getNextId(), |
122 |
| - actionName, |
123 |
| - new ArrayList<>(inputActions), |
124 |
| - transform, |
125 |
| - tuple.getRight(), |
126 |
| - new HashSet<>()); |
127 |
| - action.setParallelism(parallelism); |
128 |
| - CatalogTable catalogTable = |
129 |
| - CatalogTableUtil.getCatalogTable( |
130 |
| - tableId, (SeaTunnelRowType) transform.getProducedType()); |
131 |
| - return new Tuple2<>(catalogTable, action); |
132 |
| - } |
133 |
| - |
134 | 99 | public List<SinkAction<?, ?, ?, ?>> parseSinks(
|
135 | 100 | int configIndex,
|
136 | 101 | List<List<Tuple2<CatalogTable, Action>>> inputVertices,
|
|
0 commit comments