|
@@ -8,22 +8,16 @@ import java.util.Map;
|
|
|
|
|
|
public final class BatchWriter {
|
|
|
|
|
|
- private ConnectorMapper connectorMapper;
|
|
|
+ private ConnectorMapper connectorMapper;
|
|
|
private Map<String, String> command;
|
|
|
- private String tableName;
|
|
|
- private String event;
|
|
|
- private List<Field> fields;
|
|
|
- private List<Map> dataList;
|
|
|
- private int batchSize;
|
|
|
- private boolean isForceUpdate;
|
|
|
+ private String tableName;
|
|
|
+ private String event;
|
|
|
+ private List<Field> fields;
|
|
|
+ private List<Map> dataList;
|
|
|
+ private int batchSize;
|
|
|
|
|
|
public BatchWriter(ConnectorMapper connectorMapper, Map<String, String> command, String tableName, String event,
|
|
|
List<Field> fields, List<Map> dataList, int batchSize) {
|
|
|
- this(connectorMapper, command, tableName, event, fields, dataList, batchSize, false);
|
|
|
- }
|
|
|
-
|
|
|
- public BatchWriter(ConnectorMapper connectorMapper, Map<String, String> command, String tableName, String event,
|
|
|
- List<Field> fields, List<Map> dataList, int batchSize, boolean isForceUpdate) {
|
|
|
this.connectorMapper = connectorMapper;
|
|
|
this.command = command;
|
|
|
this.tableName = tableName;
|
|
@@ -31,7 +25,6 @@ public final class BatchWriter {
|
|
|
this.fields = fields;
|
|
|
this.dataList = dataList;
|
|
|
this.batchSize = batchSize;
|
|
|
- this.isForceUpdate = isForceUpdate;
|
|
|
}
|
|
|
|
|
|
public ConnectorMapper getConnectorMapper() {
|
|
@@ -62,7 +55,4 @@ public final class BatchWriter {
|
|
|
return batchSize;
|
|
|
}
|
|
|
|
|
|
- public boolean isForceUpdate() {
|
|
|
- return isForceUpdate;
|
|
|
- }
|
|
|
}
|