Skip to content

Commit f2dcabc

Browse files
Paddy0523FlechazoW
authored andcommitted
[hotfix-#906][typo]Correct spelling mistakes BigIntegerAccmulator -> BigIntegerAccumulator
1 parent b3c7f5a commit f2dcabc

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

chunjun-connectors/chunjun-connector-jdbc-base/src/main/java/com/dtstack/chunjun/connector/jdbc/source/JdbcInputFormat.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.dtstack.chunjun.constants.ConstantValue;
2626
import com.dtstack.chunjun.constants.Metrics;
2727
import com.dtstack.chunjun.enums.ColumnType;
28-
import com.dtstack.chunjun.metrics.BigIntegerAccmulator;
28+
import com.dtstack.chunjun.metrics.BigIntegerAccumulator;
2929
import com.dtstack.chunjun.metrics.StringAccumulator;
3030
import com.dtstack.chunjun.restore.FormatState;
3131
import com.dtstack.chunjun.source.format.BaseRichInputFormat;
@@ -89,8 +89,8 @@ public class JdbcInputFormat extends BaseRichInputFormat {
8989
protected Object state = null;
9090

9191
protected StringAccumulator maxValueAccumulator;
92-
protected BigIntegerAccmulator endLocationAccumulator;
93-
protected BigIntegerAccmulator startLocationAccumulator;
92+
protected BigIntegerAccumulator endLocationAccumulator;
93+
protected BigIntegerAccumulator startLocationAccumulator;
9494

9595
// 轮询增量标识字段类型
9696
protected ColumnType type;
@@ -305,8 +305,8 @@ protected void initMetric(InputSplit inputSplit) {
305305
}
306306
// 初始化增量、轮询字段类型
307307
type = ColumnType.fromString(jdbcConf.getIncreColumnType());
308-
startLocationAccumulator = new BigIntegerAccmulator();
309-
endLocationAccumulator = new BigIntegerAccmulator();
308+
startLocationAccumulator = new BigIntegerAccumulator();
309+
endLocationAccumulator = new BigIntegerAccumulator();
310310
JdbcInputSplit jdbcInputSplit = (JdbcInputSplit) inputSplit;
311311
String startLocation =
312312
StringUtil.stringToTimestampStr(jdbcInputSplit.getStartLocation(), type);

chunjun-connectors/chunjun-connector-pgwal/src/main/java/com/dtstack/chunjun/connector/api/DatabaseBaseRichInputFormat.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.dtstack.chunjun.connector.jdbc.util.JdbcUtil;
66
import com.dtstack.chunjun.constants.Metrics;
77
import com.dtstack.chunjun.enums.ColumnType;
8-
import com.dtstack.chunjun.metrics.BigIntegerAccmulator;
8+
import com.dtstack.chunjun.metrics.BigIntegerAccumulator;
99
import com.dtstack.chunjun.metrics.StringAccumulator;
1010
import com.dtstack.chunjun.source.format.BaseRichInputFormat;
1111
import com.dtstack.chunjun.throwable.ReadRecordException;
@@ -40,8 +40,8 @@ public class DatabaseBaseRichInputFormat<T, OUT extends RowData> extends BaseRic
4040
/** 用户脚本中填写的字段类型集合 */
4141
protected StringAccumulator maxValueAccumulator;
4242

43-
protected BigIntegerAccmulator endLocationAccumulator;
44-
protected BigIntegerAccmulator startLocationAccumulator;
43+
protected BigIntegerAccumulator endLocationAccumulator;
44+
protected BigIntegerAccumulator startLocationAccumulator;
4545
// 轮询增量标识字段类型
4646
protected ColumnType type;
4747
private ServiceProcessor<T, OUT> processor;
@@ -104,8 +104,8 @@ protected void initMetric(InputSplit inputSplit) {
104104
}
105105
// 初始化增量、轮询字段类型
106106
type = ColumnType.fromString(jdbcConf.getIncreColumnType());
107-
startLocationAccumulator = new BigIntegerAccmulator();
108-
endLocationAccumulator = new BigIntegerAccmulator();
107+
startLocationAccumulator = new BigIntegerAccumulator();
108+
endLocationAccumulator = new BigIntegerAccumulator();
109109
String startLocation = StringUtil.stringToTimestampStr(jdbcConf.getStartLocation(), type);
110110

111111
if (StringUtils.isNotEmpty(jdbcConf.getStartLocation())) {

chunjun-core/src/main/java/com/dtstack/chunjun/metrics/BigIntegerAccmulator.java renamed to chunjun-core/src/main/java/com/dtstack/chunjun/metrics/BigIntegerAccumulator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
*
2828
* @author tudou
2929
*/
30-
public class BigIntegerAccmulator implements SimpleAccumulator<BigInteger> {
30+
public class BigIntegerAccumulator implements SimpleAccumulator<BigInteger> {
3131

3232
private static final long serialVersionUID = 1L;
3333

3434
private BigInteger max = BigInteger.valueOf(Integer.MIN_VALUE);
3535

36-
public BigIntegerAccmulator() {}
36+
public BigIntegerAccumulator() {}
3737

3838
@Override
3939
public void add(BigInteger value) {
@@ -60,8 +60,8 @@ public void resetLocal() {
6060
}
6161

6262
@Override
63-
public BigIntegerAccmulator clone() {
64-
BigIntegerAccmulator clone = new BigIntegerAccmulator();
63+
public BigIntegerAccumulator clone() {
64+
BigIntegerAccumulator clone = new BigIntegerAccumulator();
6565
clone.max = this.max;
6666
return clone;
6767
}

0 commit comments

Comments
 (0)