Skip to content

Commit 94523ea

Browse files
author
payniexiao
committed
[Docs] Add default constructor for psf example
1 parent 589bced commit 94523ea

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/design/psf_get.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ public class Sum extends GetFunc {
4141
this.rowIndex = rowIndex;
4242
}
4343

44-
public SumParam() {
45-
     this(-1, -1);
46-
   }
47-
4844
public int getRowIndex() {
4945
return rowIndex;
5046
}
@@ -160,6 +156,10 @@ public class Sum extends GetFunc {
160156
public Sum(SumParam param) {
161157
super(param);
162158
}
159+
160+
public Sum() {
161+
this(null);
162+
}
163163

164164
// 获取落在该分区的行分片的元素的和,本方法会在PS端调用
165165
@Override

docs/design/psf_update.md

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ public class Random extends UpdaterFunc {
131131
public Random(UpdaterParam param) {
132132
super(param);
133133
}
134+
135+
public Random() {
136+
this(null);
137+
}
134138

135139
// 分区random操作
136140
@Override

0 commit comments

Comments
 (0)