1
0
Fork 0

builder pattern screws up the Parquet schema inference method, avoid using it in the bean definitions

This commit is contained in:
Claudio Atzori 2020-02-04 14:10:58 +01:00
parent ed290ca8d7
commit d3b96f102b
4 changed files with 30 additions and 46 deletions

View File

@ -12,18 +12,16 @@ public class Field<T> implements Serializable {
return value; return value;
} }
public Field<T> setValue(T value) { public void setValue(T value) {
this.value = value; this.value = value;
return this;
} }
public DataInfo getDataInfo() { public DataInfo getDataInfo() {
return dataInfo; return dataInfo;
} }
public Field<T> setDataInfo(DataInfo dataInfo) { public void setDataInfo(DataInfo dataInfo) {
this.dataInfo = dataInfo; this.dataInfo = dataInfo;
return this;
} }
@Override @Override

View File

@ -26,72 +26,64 @@ public class Instance implements Serializable {
return license; return license;
} }
public Instance setLicense(Field<String> license) { public void setLicense(Field<String> license) {
this.license = license; this.license = license;
return this;
} }
public Qualifier getAccessright() { public Qualifier getAccessright() {
return accessright; return accessright;
} }
public Instance setAccessright(Qualifier accessright) { public void setAccessright(Qualifier accessright) {
this.accessright = accessright; this.accessright = accessright;
return this;
} }
public Qualifier getInstancetype() { public Qualifier getInstancetype() {
return instancetype; return instancetype;
} }
public Instance setInstancetype(Qualifier instancetype) { public void setInstancetype(Qualifier instancetype) {
this.instancetype = instancetype; this.instancetype = instancetype;
return this;
} }
public KeyValue getHostedby() { public KeyValue getHostedby() {
return hostedby; return hostedby;
} }
public Instance setHostedby(KeyValue hostedby) { public void setHostedby(KeyValue hostedby) {
this.hostedby = hostedby; this.hostedby = hostedby;
return this;
} }
public List<String> getUrl() { public List<String> getUrl() {
return url; return url;
} }
public Instance setUrl(List<String> url) { public void setUrl(List<String> url) {
this.url = url; this.url = url;
return this;
} }
public String getDistributionlocation() { public String getDistributionlocation() {
return distributionlocation; return distributionlocation;
} }
public Instance setDistributionlocation(String distributionlocation) { public void setDistributionlocation(String distributionlocation) {
this.distributionlocation = distributionlocation; this.distributionlocation = distributionlocation;
return this;
} }
public KeyValue getCollectedfrom() { public KeyValue getCollectedfrom() {
return collectedfrom; return collectedfrom;
} }
public Instance setCollectedfrom(KeyValue collectedfrom) { public void setCollectedfrom(KeyValue collectedfrom) {
this.collectedfrom = collectedfrom; this.collectedfrom = collectedfrom;
return this;
} }
public Field<String> getDateofacceptance() { public Field<String> getDateofacceptance() {
return dateofacceptance; return dateofacceptance;
} }
public Instance setDateofacceptance(Field<String> dateofacceptance) { public void setDateofacceptance(Field<String> dateofacceptance) {
this.dateofacceptance = dateofacceptance; this.dateofacceptance = dateofacceptance;
return this;
} }
public String toComparableString(){ public String toComparableString(){

View File

@ -16,36 +16,32 @@ public class Qualifier implements Serializable {
return classid; return classid;
} }
public Qualifier setClassid(String classid) { public void setClassid(String classid) {
this.classid = classid; this.classid = classid;
return this;
} }
public String getClassname() { public String getClassname() {
return classname; return classname;
} }
public Qualifier setClassname(String classname) { public void setClassname(String classname) {
this.classname = classname; this.classname = classname;
return this;
} }
public String getSchemeid() { public String getSchemeid() {
return schemeid; return schemeid;
} }
public Qualifier setSchemeid(String schemeid) { public void setSchemeid(String schemeid) {
this.schemeid = schemeid; this.schemeid = schemeid;
return this;
} }
public String getSchemename() { public String getSchemename() {
return schemename; return schemename;
} }
public Qualifier setSchemename(String schemename) { public void setSchemename(String schemename) {
this.schemename = schemename; this.schemename = schemename;
return this;
} }
public String toComparableString() { public String toComparableString() {

View File

@ -210,6 +210,22 @@ public abstract class Result extends OafEntity implements Serializable {
this.context = context; this.context = context;
} }
public Field<String> getProcessingchargeamount() {
return processingchargeamount;
}
public void setProcessingchargeamount(Field<String> processingchargeamount) {
this.processingchargeamount = processingchargeamount;
}
public Field<String> getProcessingchargecurrency() {
return processingchargecurrency;
}
public void setProcessingchargecurrency(Field<String> processingchargecurrency) {
this.processingchargecurrency = processingchargecurrency;
}
public List<ExternalReference> getExternalReference() { public List<ExternalReference> getExternalReference() {
return externalReference; return externalReference;
} }
@ -226,24 +242,6 @@ public abstract class Result extends OafEntity implements Serializable {
this.instance = instance; this.instance = instance;
} }
public Field<String> getProcessingchargeamount() {
return processingchargeamount;
}
public Result setProcessingchargeamount(Field<String> processingchargeamount) {
this.processingchargeamount = processingchargeamount;
return this;
}
public Field<String> getProcessingchargecurrency() {
return processingchargecurrency;
}
public Result setProcessingchargecurrency(Field<String> processingchargecurrency) {
this.processingchargecurrency = processingchargecurrency;
return this;
}
@Override @Override
public void mergeFrom(OafEntity e) { public void mergeFrom(OafEntity e) {
super.mergeFrom(e); super.mergeFrom(e);