@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_dbName = true && (isSetDbName()); list.add(present_dbName); if (present_dbName) list.add(dbName); boolean present_tblName = true && (isSetTblName()); list.add(present_tblName); if (present_tblName) list.add(tblName); boolean present_colNames = true && (isSetColNames()); list.add(present_colNames); if (present_colNames) list.add(colNames); boolean present_partNames = true && (isSetPartNames()); list.add(present_partNames); if (present_partNames) list.add(partNames); boolean present_catName = true && (isSetCatName()); list.add(present_catName); if (present_catName) list.add(catName); boolean present_validWriteIdList = true && (isSetValidWriteIdList()); list.add(present_validWriteIdList); if (present_validWriteIdList) list.add(validWriteIdList); return list.hashCode(); }
lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); if (lastComparison != 0) { return lastComparison; if (isSetPartNames()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case COL_NAMES: return isSetColNames(); case PART_NAMES: return isSetPartNames(); case CAT_NAME: return isSetCatName(); case VALID_WRITE_ID_LIST: return isSetValidWriteIdList(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsRequest(PartitionsStatsRequest other) { if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetColNames()) { List<String> __this__colNames = new ArrayList<String>(other.colNames); this.colNames = __this__colNames; } if (other.isSetPartNames()) { List<String> __this__partNames = new ArrayList<String>(other.partNames); this.partNames = __this__partNames; } if (other.isSetCatName()) { this.catName = other.catName; } if (other.isSetValidWriteIdList()) { this.validWriteIdList = other.validWriteIdList; } }
boolean this_present_partNames = true && this.isSetPartNames(); boolean that_present_partNames = true && that.isSetPartNames(); if (this_present_partNames || that_present_partNames) { if (!(this_present_partNames && that_present_partNames))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } if (!isSetPartNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); builder.append(present_dbName); if (present_dbName) builder.append(dbName); boolean present_tblName = true && (isSetTblName()); builder.append(present_tblName); if (present_tblName) builder.append(tblName); boolean present_colNames = true && (isSetColNames()); builder.append(present_colNames); if (present_colNames) builder.append(colNames); boolean present_partNames = true && (isSetPartNames()); builder.append(present_partNames); if (present_partNames) builder.append(partNames); return builder.toHashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case COL_NAMES: return isSetColNames(); case PART_NAMES: return isSetPartNames(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_dbName = true && (isSetDbName()); list.add(present_dbName); if (present_dbName) list.add(dbName); boolean present_tblName = true && (isSetTblName()); list.add(present_tblName); if (present_tblName) list.add(tblName); boolean present_colNames = true && (isSetColNames()); list.add(present_colNames); if (present_colNames) list.add(colNames); boolean present_partNames = true && (isSetPartNames()); list.add(present_partNames); if (present_partNames) list.add(partNames); boolean present_catName = true && (isSetCatName()); list.add(present_catName); if (present_catName) list.add(catName); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case COL_NAMES: return isSetColNames(); case PART_NAMES: return isSetPartNames(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsRequest(PartitionsStatsRequest other) { if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetColNames()) { List<String> __this__colNames = new ArrayList<String>(); for (String other_element : other.colNames) { __this__colNames.add(other_element); } this.colNames = __this__colNames; } if (other.isSetPartNames()) { List<String> __this__partNames = new ArrayList<String>(); for (String other_element : other.partNames) { __this__partNames.add(other_element); } this.partNames = __this__partNames; } }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsRequest(PartitionsStatsRequest other) { if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetColNames()) { List<String> __this__colNames = new ArrayList<String>(); for (String other_element : other.colNames) { __this__colNames.add(other_element); } this.colNames = __this__colNames; } if (other.isSetPartNames()) { List<String> __this__partNames = new ArrayList<String>(); for (String other_element : other.partNames) { __this__partNames.add(other_element); } this.partNames = __this__partNames; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case COL_NAMES: return isSetColNames(); case PART_NAMES: return isSetPartNames(); case CAT_NAME: return isSetCatName(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsRequest(PartitionsStatsRequest other) { if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetColNames()) { List<String> __this__colNames = new ArrayList<String>(other.colNames); this.colNames = __this__colNames; } if (other.isSetPartNames()) { List<String> __this__partNames = new ArrayList<String>(other.partNames); this.partNames = __this__partNames; } if (other.isSetCatName()) { this.catName = other.catName; } }
boolean this_present_partNames = true && this.isSetPartNames(); boolean that_present_partNames = true && that.isSetPartNames(); if (this_present_partNames || that_present_partNames) { if (!(this_present_partNames && that_present_partNames))
boolean this_present_partNames = true && this.isSetPartNames(); boolean that_present_partNames = true && that.isSetPartNames(); if (this_present_partNames || that_present_partNames) { if (!(this_present_partNames && that_present_partNames))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } if (!isSetPartNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } if (!isSetPartNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } if (!isSetPartNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); builder.append(present_dbName); if (present_dbName) builder.append(dbName); boolean present_tblName = true && (isSetTblName()); builder.append(present_tblName); if (present_tblName) builder.append(tblName); boolean present_colNames = true && (isSetColNames()); builder.append(present_colNames); if (present_colNames) builder.append(colNames); boolean present_partNames = true && (isSetPartNames()); builder.append(present_partNames); if (present_partNames) builder.append(partNames); return builder.toHashCode(); }