fix:typo error (shading->sharding)

This commit is contained in:
bitvincent 2021-11-04 18:32:52 +08:00
parent 312b59c28e
commit 6adcf235fb
2 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ import java.util.HashMap;
public class Contract extends SM2Verifiable implements Serializable { public class Contract extends SM2Verifiable implements Serializable {
public String key; public String key;
public ContractStartInfo startInfo = new ContractStartInfo(); public ContractStartInfo startInfo = new ContractStartInfo();
public int shadingId; public int shardingId;
public String sourcePath; // 用作name public String sourcePath; // 用作name
// 通过setMask实现 // 通过setMask实现
public HashMap<String, JsonElement> Mask = new HashMap<>(); public HashMap<String, JsonElement> Mask = new HashMap<>();
@ -40,12 +40,12 @@ public class Contract extends SM2Verifiable implements Serializable {
private boolean stateful = true; // manifest可配置 private boolean stateful = true; // manifest可配置
private YjsType yjsType; private YjsType yjsType;
public int getShadingId() { public int getShardingId() {
return this.shadingId; return this.shardingId;
} }
public void setShadingId(int shadingId1) { public void setShardingId(int shardingId) {
this.shadingId = shadingId1; this.shardingId = shardingId;
} }
public boolean getConfigUnit() { public boolean getConfigUnit() {

View File

@ -9,7 +9,7 @@ public enum ContractExecType implements Serializable {
RequestAllResponseFirst, RequestAllResponseFirst,
RequestAllResponseHalf, RequestAllResponseHalf,
RequestAllResponseAll, RequestAllResponseAll,
Shading;//分片执行模式 Sharding;//分片执行模式
public static ContractExecType getContractTypeByInt(int i) { public static ContractExecType getContractTypeByInt(int i) {
ContractExecType[] values = ContractExecType.values(); ContractExecType[] values = ContractExecType.values();
@ -28,7 +28,7 @@ public enum ContractExecType implements Serializable {
case RequestAllResponseAll: case RequestAllResponseAll:
case RequestAllResponseFirst: case RequestAllResponseFirst:
case RequestAllResponseHalf: case RequestAllResponseHalf:
case Shading: case Sharding:
default: default:
break; break;
} }