@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_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(); }
/** 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 CAT_NAME: return isSetCatName(); case VALID_WRITE_ID_LIST: return isSetValidWriteIdList(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); if (lastComparison != 0) { return lastComparison; if (isSetTblName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public TableStatsRequest(TableStatsRequest 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.isSetCatName()) { this.catName = other.catName; } if (other.isSetValidWriteIdList()) { this.validWriteIdList = other.validWriteIdList; } }
boolean this_present_tblName = true && this.isSetTblName(); boolean that_present_tblName = true && that.isSetTblName(); if (this_present_tblName || that_present_tblName) { if (!(this_present_tblName && that_present_tblName))
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()); } // 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); 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(); } throw new IllegalStateException(); }
/** 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(); } 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_catName = true && (isSetCatName()); list.add(present_catName); if (present_catName) list.add(catName); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsRequest(TableStatsRequest 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; } }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsRequest(TableStatsRequest 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; } }
/** 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 CAT_NAME: return isSetCatName(); } throw new IllegalStateException(); }
public boolean equals(TableStatsRequest that) { if (that == null) return false; boolean this_present_dbName = true && this.isSetDbName(); boolean that_present_dbName = true && that.isSetDbName(); if (this_present_dbName || that_present_dbName) { if (!(this_present_dbName && that_present_dbName)) return false; if (!this.dbName.equals(that.dbName)) return false; } boolean this_present_tblName = true && this.isSetTblName(); boolean that_present_tblName = true && that.isSetTblName(); if (this_present_tblName || that_present_tblName) { if (!(this_present_tblName && that_present_tblName)) return false; if (!this.tblName.equals(that.tblName)) return false; } boolean this_present_colNames = true && this.isSetColNames(); boolean that_present_colNames = true && that.isSetColNames(); if (this_present_colNames || that_present_colNames) { if (!(this_present_colNames && that_present_colNames)) return false; if (!this.colNames.equals(that.colNames)) return false; } return true; }
public boolean equals(TableStatsRequest that) { if (that == null) return false; boolean this_present_dbName = true && this.isSetDbName(); boolean that_present_dbName = true && that.isSetDbName(); if (this_present_dbName || that_present_dbName) { if (!(this_present_dbName && that_present_dbName)) return false; if (!this.dbName.equals(that.dbName)) return false; } boolean this_present_tblName = true && this.isSetTblName(); boolean that_present_tblName = true && that.isSetTblName(); if (this_present_tblName || that_present_tblName) { if (!(this_present_tblName && that_present_tblName)) return false; if (!this.tblName.equals(that.tblName)) return false; } boolean this_present_colNames = true && this.isSetColNames(); boolean that_present_colNames = true && that.isSetColNames(); if (this_present_colNames || that_present_colNames) { if (!(this_present_colNames && that_present_colNames)) return false; if (!this.colNames.equals(that.colNames)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsRequest(TableStatsRequest 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.isSetCatName()) { this.catName = other.catName; } }
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()); } // 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()); } // 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()); } // 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); return builder.toHashCode(); }