|
16 | 16 | * limitations under the License. |
17 | 17 | */ |
18 | 18 |
|
19 | | -package com.dtstack.flink.sql.sink.elasticsearch6; |
| 19 | +package com.dtstack.flink.sql.sink.elasticsearch; |
20 | 20 |
|
21 | 21 | import org.apache.flink.api.common.typeinfo.TypeInformation; |
22 | 22 | import org.apache.flink.api.java.tuple.Tuple2; |
|
30 | 30 | import org.apache.flink.types.Row; |
31 | 31 |
|
32 | 32 | import com.dtstack.flink.sql.sink.IStreamSinkGener; |
33 | | -import com.dtstack.flink.sql.sink.elasticsearch6.table.ElasticsearchTableInfo; |
| 33 | +import com.dtstack.flink.sql.sink.elasticsearch.table.ElasticsearchTableInfo; |
34 | 34 | import com.dtstack.flink.sql.table.TargetTableInfo; |
35 | 35 | import com.google.common.collect.Maps; |
36 | 36 | import org.apache.commons.lang.StringUtils; |
|
47 | 47 | * @author yinxi |
48 | 48 | * @date 2020/1/9 - 15:08 |
49 | 49 | */ |
50 | | -public class Elasticsearch6Sink implements RetractStreamTableSink<Row>, IStreamSinkGener<Elasticsearch6Sink> { |
| 50 | +public class ElasticsearchSink implements RetractStreamTableSink<Row>, IStreamSinkGener<ElasticsearchSink> { |
51 | 51 |
|
52 | | - private final Logger logger = LoggerFactory.getLogger(Elasticsearch6Sink.class); |
| 52 | + private final Logger logger = LoggerFactory.getLogger(ElasticsearchSink.class); |
53 | 53 |
|
54 | 54 | private String clusterName; |
55 | 55 |
|
@@ -150,7 +150,7 @@ public void setBulkFlushMaxActions(int bulkFlushMaxActions) { |
150 | 150 | } |
151 | 151 |
|
152 | 152 | @Override |
153 | | - public Elasticsearch6Sink genStreamSink(TargetTableInfo targetTableInfo) { |
| 153 | + public ElasticsearchSink genStreamSink(TargetTableInfo targetTableInfo) { |
154 | 154 | ElasticsearchTableInfo elasticsearchTableInfo = (ElasticsearchTableInfo) targetTableInfo; |
155 | 155 | esTableInfo = elasticsearchTableInfo; |
156 | 156 | clusterName = elasticsearchTableInfo.getClusterName(); |
|
0 commit comments