@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_schemaName = true && (isSetSchemaName()); list.add(present_schemaName); if (present_schemaName) list.add(schemaName); 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 CAT_NAME: return isSetCatName(); case DB_NAME: return isSetDbName(); case SCHEMA_NAME: return isSetSchemaName(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public ISchemaName(ISchemaName other) { if (other.isSetCatName()) { this.catName = other.catName; } if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetSchemaName()) { this.schemaName = other.schemaName; } }
lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; if (isSetSchemaName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); if (lastComparison != 0) {
public boolean equals(ISchemaName that) { if (that == null) return false; boolean this_present_catName = true && this.isSetCatName(); boolean that_present_catName = true && that.isSetCatName(); if (this_present_catName || that_present_catName) { if (!(this_present_catName && that_present_catName)) return false; if (!this.catName.equals(that.catName)) 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_schemaName = true && this.isSetSchemaName(); boolean that_present_schemaName = true && that.isSetSchemaName(); if (this_present_schemaName || that_present_schemaName) { if (!(this_present_schemaName && that_present_schemaName)) return false; if (!this.schemaName.equals(that.schemaName)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ISchemaName struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCatName()) { optionals.set(0); } if (struct.isSetDbName()) { optionals.set(1); } if (struct.isSetSchemaName()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } if (struct.isSetDbName()) { oprot.writeString(struct.dbName); } if (struct.isSetSchemaName()) { oprot.writeString(struct.schemaName); } }
@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_schemaName = true && (isSetSchemaName()); list.add(present_schemaName); if (present_schemaName) list.add(schemaName); 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 CAT_NAME: return isSetCatName(); case DB_NAME: return isSetDbName(); case SCHEMA_NAME: return isSetSchemaName(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public ISchemaName(ISchemaName other) { if (other.isSetCatName()) { this.catName = other.catName; } if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetSchemaName()) { this.schemaName = other.schemaName; } }
lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; if (isSetSchemaName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); if (lastComparison != 0) {
public boolean equals(ISchemaName that) { if (that == null) return false; boolean this_present_catName = true && this.isSetCatName(); boolean that_present_catName = true && that.isSetCatName(); if (this_present_catName || that_present_catName) { if (!(this_present_catName && that_present_catName)) return false; if (!this.catName.equals(that.catName)) 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_schemaName = true && this.isSetSchemaName(); boolean that_present_schemaName = true && that.isSetSchemaName(); if (this_present_schemaName || that_present_schemaName) { if (!(this_present_schemaName && that_present_schemaName)) return false; if (!this.schemaName.equals(that.schemaName)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ISchemaName struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCatName()) { optionals.set(0); } if (struct.isSetDbName()) { optionals.set(1); } if (struct.isSetSchemaName()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } if (struct.isSetDbName()) { oprot.writeString(struct.dbName); } if (struct.isSetSchemaName()) { oprot.writeString(struct.schemaName); } }