in pinot-common/src/main/java/org/apache/pinot/common/request/InstanceRequest.java [605:684]
public boolean equals(InstanceRequest that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_requestId = true;
boolean that_present_requestId = true;
if (this_present_requestId || that_present_requestId) {
if (!(this_present_requestId && that_present_requestId))
return false;
if (this.requestId != that.requestId)
return false;
}
boolean this_present_query = true && this.isSetQuery();
boolean that_present_query = true && that.isSetQuery();
if (this_present_query || that_present_query) {
if (!(this_present_query && that_present_query))
return false;
if (!this.query.equals(that.query))
return false;
}
boolean this_present_searchSegments = true && this.isSetSearchSegments();
boolean that_present_searchSegments = true && that.isSetSearchSegments();
if (this_present_searchSegments || that_present_searchSegments) {
if (!(this_present_searchSegments && that_present_searchSegments))
return false;
if (!this.searchSegments.equals(that.searchSegments))
return false;
}
boolean this_present_enableTrace = true && this.isSetEnableTrace();
boolean that_present_enableTrace = true && that.isSetEnableTrace();
if (this_present_enableTrace || that_present_enableTrace) {
if (!(this_present_enableTrace && that_present_enableTrace))
return false;
if (this.enableTrace != that.enableTrace)
return false;
}
boolean this_present_brokerId = true && this.isSetBrokerId();
boolean that_present_brokerId = true && that.isSetBrokerId();
if (this_present_brokerId || that_present_brokerId) {
if (!(this_present_brokerId && that_present_brokerId))
return false;
if (!this.brokerId.equals(that.brokerId))
return false;
}
boolean this_present_optionalSegments = true && this.isSetOptionalSegments();
boolean that_present_optionalSegments = true && that.isSetOptionalSegments();
if (this_present_optionalSegments || that_present_optionalSegments) {
if (!(this_present_optionalSegments && that_present_optionalSegments))
return false;
if (!this.optionalSegments.equals(that.optionalSegments))
return false;
}
boolean this_present_cid = true && this.isSetCid();
boolean that_present_cid = true && that.isSetCid();
if (this_present_cid || that_present_cid) {
if (!(this_present_cid && that_present_cid))
return false;
if (!this.cid.equals(that.cid))
return false;
}
boolean this_present_tableSegmentsInfoList = true && this.isSetTableSegmentsInfoList();
boolean that_present_tableSegmentsInfoList = true && that.isSetTableSegmentsInfoList();
if (this_present_tableSegmentsInfoList || that_present_tableSegmentsInfoList) {
if (!(this_present_tableSegmentsInfoList && that_present_tableSegmentsInfoList))
return false;
if (!this.tableSegmentsInfoList.equals(that.tableSegmentsInfoList))
return false;
}
return true;
}