@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_fact_table = true && (isSetFact_table()); list.add(present_fact_table); if (present_fact_table) list.add(fact_table); boolean present_aggregate_table_list = true && (isSetAggregate_table_list()); list.add(present_aggregate_table_list); if (present_aggregate_table_list) list.add(aggregate_table_list); boolean present_dataMapSchemas = true && (isSetDataMapSchemas()); list.add(present_dataMapSchemas); if (present_dataMapSchemas) list.add(dataMapSchemas); return list.hashCode(); }
if (isSetDataMapSchemas()) { if (!first) sb.append(", "); sb.append("dataMapSchemas:");
/** 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 FACT_TABLE: return isSetFact_table(); case AGGREGATE_TABLE_LIST: return isSetAggregate_table_list(); case DATA_MAP_SCHEMAS: return isSetDataMapSchemas(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetDataMapSchemas()).compareTo(other.isSetDataMapSchemas()); if (lastComparison != 0) { return lastComparison; if (isSetDataMapSchemas()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataMapSchemas, other.dataMapSchemas); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public TableInfo(TableInfo other) { if (other.isSetFact_table()) { this.fact_table = new TableSchema(other.fact_table); } if (other.isSetAggregate_table_list()) { List<TableSchema> __this__aggregate_table_list = new ArrayList<TableSchema>(other.aggregate_table_list.size()); for (TableSchema other_element : other.aggregate_table_list) { __this__aggregate_table_list.add(new TableSchema(other_element)); } this.aggregate_table_list = __this__aggregate_table_list; } if (other.isSetDataMapSchemas()) { List<DataMapSchema> __this__dataMapSchemas = new ArrayList<DataMapSchema>(other.dataMapSchemas.size()); for (DataMapSchema other_element : other.dataMapSchemas) { __this__dataMapSchemas.add(new DataMapSchema(other_element)); } this.dataMapSchemas = __this__dataMapSchemas; } }
public boolean equals(TableInfo that) { if (that == null) return false; boolean this_present_fact_table = true && this.isSetFact_table(); boolean that_present_fact_table = true && that.isSetFact_table(); if (this_present_fact_table || that_present_fact_table) { if (!(this_present_fact_table && that_present_fact_table)) return false; if (!this.fact_table.equals(that.fact_table)) return false; } boolean this_present_aggregate_table_list = true && this.isSetAggregate_table_list(); boolean that_present_aggregate_table_list = true && that.isSetAggregate_table_list(); if (this_present_aggregate_table_list || that_present_aggregate_table_list) { if (!(this_present_aggregate_table_list && that_present_aggregate_table_list)) return false; if (!this.aggregate_table_list.equals(that.aggregate_table_list)) return false; } boolean this_present_dataMapSchemas = true && this.isSetDataMapSchemas(); boolean that_present_dataMapSchemas = true && that.isSetDataMapSchemas(); if (this_present_dataMapSchemas || that_present_dataMapSchemas) { if (!(this_present_dataMapSchemas && that_present_dataMapSchemas)) return false; if (!this.dataMapSchemas.equals(that.dataMapSchemas)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.fact_table.write(oprot); { oprot.writeI32(struct.aggregate_table_list.size()); for (TableSchema _iter142 : struct.aggregate_table_list) { _iter142.write(oprot); } } BitSet optionals = new BitSet(); if (struct.isSetDataMapSchemas()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetDataMapSchemas()) { { oprot.writeI32(struct.dataMapSchemas.size()); for (DataMapSchema _iter143 : struct.dataMapSchemas) { _iter143.write(oprot); } } } }
if (struct.isSetDataMapSchemas()) { oprot.writeFieldBegin(DATA_MAP_SCHEMAS_FIELD_DESC);