@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_catName = true && (isSetCatName()); list.add(present_catName); if (present_catName) list.add(catName); 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_tablesUsed = true && (isSetTablesUsed()); list.add(present_tablesUsed); if (present_tablesUsed) list.add(tablesUsed); boolean present_validTxnList = true && (isSetValidTxnList()); list.add(present_validTxnList); if (present_validTxnList) list.add(validTxnList); boolean present_materializationTime = true && (isSetMaterializationTime()); list.add(present_materializationTime); if (present_materializationTime) list.add(materializationTime); return list.hashCode(); }
lastComparison = Boolean.valueOf(isSetTablesUsed()).compareTo(other.isSetTablesUsed()); if (lastComparison != 0) { return lastComparison; if (isSetTablesUsed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablesUsed, other.tablesUsed); 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 CAT_NAME: return isSetCatName(); case DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case TABLES_USED: return isSetTablesUsed(); case VALID_TXN_LIST: return isSetValidTxnList(); case MATERIALIZATION_TIME: return isSetMaterializationTime(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public CreationMetadata(CreationMetadata other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCatName()) { this.catName = other.catName; } if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetTablesUsed()) { Set<String> __this__tablesUsed = new HashSet<String>(other.tablesUsed); this.tablesUsed = __this__tablesUsed; } if (other.isSetValidTxnList()) { this.validTxnList = other.validTxnList; } this.materializationTime = other.materializationTime; }
boolean this_present_tablesUsed = true && this.isSetTablesUsed(); boolean that_present_tablesUsed = true && that.isSetTablesUsed(); if (this_present_tablesUsed || that_present_tablesUsed) { if (!(this_present_tablesUsed && that_present_tablesUsed))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetCatName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'catName' is unset! Struct:" + toString()); } 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 (!isSetTablesUsed()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablesUsed' is unset! Struct:" + toString()); } // check for sub-struct validity }