public boolean equals(QueryPlan that) { if (that == null) return false; boolean this_present_queries = true && this.isSetQueries(); boolean that_present_queries = true && that.isSetQueries(); if (this_present_queries || that_present_queries) { if (!(this_present_queries && that_present_queries)) return false; if (!this.queries.equals(that.queries)) return false; } boolean this_present_done = true; boolean that_present_done = true; if (this_present_done || that_present_done) { if (!(this_present_done && that_present_done)) return false; if (this.done != that.done) return false; } boolean this_present_started = true; boolean that_present_started = true; if (this_present_started || that_present_started) { if (!(this_present_started && that_present_started)) return false; if (this.started != that.started) return false; } return true; }
public boolean equals(QueryPlan that) { if (that == null) return false; boolean this_present_queries = true && this.isSetQueries(); boolean that_present_queries = true && that.isSetQueries(); if (this_present_queries || that_present_queries) { if (!(this_present_queries && that_present_queries)) return false; if (!this.queries.equals(that.queries)) return false; } boolean this_present_done = true; boolean that_present_done = true; if (this_present_done || that_present_done) { if (!(this_present_done && that_present_done)) return false; if (this.done != that.done) return false; } boolean this_present_started = true; boolean that_present_started = true; if (this_present_started || that_present_started) { if (!(this_present_started && that_present_started)) return false; if (this.started != that.started) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_queries = true && (isSetQueries()); list.add(present_queries); if (present_queries) list.add(queries); boolean present_done = true; list.add(present_done); if (present_done) list.add(done); boolean present_started = true; list.add(present_started); if (present_started) list.add(started); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public QueryPlan(QueryPlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetQueries()) { List<Query> __this__queries = new ArrayList<Query>(other.queries.size()); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } this.queries = __this__queries; } this.done = other.done; this.started = other.started; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_queries = true && (isSetQueries()); list.add(present_queries); if (present_queries) list.add(queries); boolean present_done = true; list.add(present_done); if (present_done) list.add(done); boolean present_started = true; list.add(present_started); if (present_started) list.add(started); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public QueryPlan(QueryPlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetQueries()) { List<Query> __this__queries = new ArrayList<Query>(other.queries.size()); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } this.queries = __this__queries; } this.done = other.done; this.started = other.started; }
/** 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 QUERIES: return isSetQueries(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
/** 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 QUERIES: return isSetQueries(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetQueries()).compareTo(other.isSetQueries()); if (lastComparison != 0) { return lastComparison; if (isSetQueries()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, other.queries); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetQueries()).compareTo(other.isSetQueries()); if (lastComparison != 0) { return lastComparison; if (isSetQueries()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, other.queries); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, QueryPlan struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetQueries()) { optionals.set(0); } if (struct.isSetDone()) { optionals.set(1); } if (struct.isSetStarted()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetQueries()) { { oprot.writeI32(struct.queries.size()); for (Query _iter132 : struct.queries) { _iter132.write(oprot); } } } if (struct.isSetDone()) { oprot.writeBool(struct.done); } if (struct.isSetStarted()) { oprot.writeBool(struct.started); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, QueryPlan struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetQueries()) { optionals.set(0); } if (struct.isSetDone()) { optionals.set(1); } if (struct.isSetStarted()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetQueries()) { { oprot.writeI32(struct.queries.size()); for (Query _iter132 : struct.queries) { _iter132.write(oprot); } } } if (struct.isSetDone()) { oprot.writeBool(struct.done); } if (struct.isSetStarted()) { oprot.writeBool(struct.started); } }
public boolean equals(QueryPlan that) { if (that == null) return false; boolean this_present_queries = true && this.isSetQueries(); boolean that_present_queries = true && that.isSetQueries(); if (this_present_queries || that_present_queries) { if (!(this_present_queries && that_present_queries)) return false; if (!this.queries.equals(that.queries)) return false; } boolean this_present_done = true; boolean that_present_done = true; if (this_present_done || that_present_done) { if (!(this_present_done && that_present_done)) return false; if (this.done != that.done) return false; } boolean this_present_started = true; boolean that_present_started = true; if (this_present_started || that_present_started) { if (!(this_present_started && that_present_started)) return false; if (this.started != that.started) return false; } return true; }
public boolean equals(QueryPlan that) { if (that == null) return false; boolean this_present_queries = true && this.isSetQueries(); boolean that_present_queries = true && that.isSetQueries(); if (this_present_queries || that_present_queries) { if (!(this_present_queries && that_present_queries)) return false; if (!this.queries.equals(that.queries)) return false; } boolean this_present_done = true; boolean that_present_done = true; if (this_present_done || that_present_done) { if (!(this_present_done && that_present_done)) return false; if (this.done != that.done) return false; } boolean this_present_started = true; boolean that_present_started = true; if (this_present_started || that_present_started) { if (!(this_present_started && that_present_started)) return false; if (this.started != that.started) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public QueryPlan(QueryPlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetQueries()) { List<Query> __this__queries = new ArrayList<Query>(); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } this.queries = __this__queries; } this.done = other.done; this.started = other.started; }
/** * Performs a deep copy on <i>other</i>. */ public QueryPlan(QueryPlan other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetQueries()) { List<Query> __this__queries = new ArrayList<Query>(); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } this.queries = __this__queries; } this.done = other.done; this.started = other.started; }
/** 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 QUERIES: return isSetQueries(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case QUERIES: return isSetQueries(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, QueryPlan struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetQueries()) { optionals.set(0); } if (struct.isSetDone()) { optionals.set(1); } if (struct.isSetStarted()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetQueries()) { { oprot.writeI32(struct.queries.size()); for (Query _iter132 : struct.queries) { _iter132.write(oprot); } } } if (struct.isSetDone()) { oprot.writeBool(struct.done); } if (struct.isSetStarted()) { oprot.writeBool(struct.started); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_queries = true && (isSetQueries()); builder.append(present_queries); if (present_queries) builder.append(queries); boolean present_done = true; builder.append(present_done); if (present_done) builder.append(done); boolean present_started = true; builder.append(present_started); if (present_started) builder.append(started); return builder.toHashCode(); }