if (isSetValidTxnList()) { if (!first) sb.append(", "); sb.append("validTxnList:");
@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(); }
if (struct.isSetValidTxnList()) { oprot.writeFieldBegin(VALID_TXN_LIST_FIELD_DESC); oprot.writeString(struct.validTxnList);
lastComparison = Boolean.valueOf(isSetValidTxnList()).compareTo(other.isSetValidTxnList()); if (lastComparison != 0) { return lastComparison; if (isSetValidTxnList()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validTxnList, other.validTxnList); 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; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CreationMetadata struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.catName); oprot.writeString(struct.dbName); oprot.writeString(struct.tblName); { oprot.writeI32(struct.tablesUsed.size()); for (String _iter752 : struct.tablesUsed) { oprot.writeString(_iter752); } } BitSet optionals = new BitSet(); if (struct.isSetValidTxnList()) { optionals.set(0); } if (struct.isSetMaterializationTime()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetValidTxnList()) { oprot.writeString(struct.validTxnList); } if (struct.isSetMaterializationTime()) { oprot.writeI64(struct.materializationTime); } }
boolean this_present_validTxnList = true && this.isSetValidTxnList(); boolean that_present_validTxnList = true && that.isSetValidTxnList(); if (this_present_validTxnList || that_present_validTxnList) { if (!(this_present_validTxnList && that_present_validTxnList))