if (isSetMaterializationTime()) { if (!first) sb.append(", "); sb.append("materializationTime:");
@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.isSetMaterializationTime()) { oprot.writeFieldBegin(MATERIALIZATION_TIME_FIELD_DESC); oprot.writeI64(struct.materializationTime);
/** 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(); }
lastComparison = Boolean.valueOf(isSetMaterializationTime()).compareTo(other.isSetMaterializationTime()); if (lastComparison != 0) { return lastComparison; if (isSetMaterializationTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.materializationTime, other.materializationTime); if (lastComparison != 0) {
@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); } }
private MCreationMetadata convertToMCreationMetadata( CreationMetadata m) throws MetaException { if (m == null) { return null; } assert !m.isSetMaterializationTime(); Set<MTable> tablesUsed = new HashSet<>(); for (String fullyQualifiedName : m.getTablesUsed()) { String[] names = fullyQualifiedName.split("\\."); tablesUsed.add(getMTable(m.getCatName(), names[0], names[1], false).mtbl); } return new MCreationMetadata(normalizeIdentifier(m.getCatName()), normalizeIdentifier(m.getDbName()), normalizeIdentifier(m.getTblName()), tablesUsed, m.getValidTxnList(), System.currentTimeMillis()); }
boolean this_present_materializationTime = true && this.isSetMaterializationTime(); boolean that_present_materializationTime = true && that.isSetMaterializationTime(); if (this_present_materializationTime || that_present_materializationTime) { if (!(this_present_materializationTime && that_present_materializationTime))
private MCreationMetadata convertToMCreationMetadata( CreationMetadata m) throws MetaException { if (m == null) { return null; } assert !m.isSetMaterializationTime(); Set<MTable> tablesUsed = new HashSet<>(); for (String fullyQualifiedName : m.getTablesUsed()) { String[] names = fullyQualifiedName.split("\\."); tablesUsed.add(getMTable(m.getCatName(), names[0], names[1], false).mtbl); } return new MCreationMetadata(m.getCatName(), m.getDbName(), m.getTblName(), tablesUsed, m.getValidTxnList(), System.currentTimeMillis()); }