mirror of
https://gitee.com/BDWare/common
synced 2025-01-26 09:44:12 +00:00
fix:typo error (shading->sharding)
This commit is contained in:
parent
312b59c28e
commit
6adcf235fb
@ -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() {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user