public QueryPlan deepCopy() { return new QueryPlan(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof QueryPlan) return this.equals((QueryPlan)that); return false; }
struct.setQueriesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.done = iprot.readBool(); struct.setDoneIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.started = iprot.readBool(); struct.setStartedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public Object getFieldValue(_Fields field) { switch (field) { case QUERIES: return getQueries(); case DONE: return isDone(); case STARTED: return isStarted(); } 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(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new org.apache.hadoop.hive.ql.plan.api.QueryPlan(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new HiveServerException(); struct.ex.read(iprot); struct.setExIsSet(true); } } }
if (field.type == TType.BOOL) { this.done = iprot.readBool(); setDoneIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.BOOL) { this.started = iprot.readBool(); setStartedIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
public void write(org.apache.thrift.protocol.TProtocol oprot, QueryPlan struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.queries != null) { oprot.writeFieldBegin(QUERIES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.queries.size())); for (Query _iter131 : struct.queries) { _iter131.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(DONE_FIELD_DESC); oprot.writeBool(struct.done); oprot.writeFieldEnd(); oprot.writeFieldBegin(STARTED_FIELD_DESC); oprot.writeBool(struct.started); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
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; }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
/** 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(); }
public Object getFieldValue(_Fields field) { switch (field) { case QUERIES: return getQueries(); case DONE: return isDone(); case STARTED: return isStarted(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new org.apache.hadoop.hive.ql.plan.api.QueryPlan(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new HiveServerException(); struct.ex.read(iprot); struct.setExIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, QueryPlan struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.queries != null) { oprot.writeFieldBegin(QUERIES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.queries.size())); for (Query _iter131 : struct.queries) { _iter131.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(DONE_FIELD_DESC); oprot.writeBool(struct.done); oprot.writeFieldEnd(); oprot.writeFieldBegin(STARTED_FIELD_DESC); oprot.writeBool(struct.started); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
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; }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
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(isSetDone()).compareTo(other.isSetDone()); if (lastComparison != 0) { return lastComparison; if (isSetDone()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); if (lastComparison != 0) { return lastComparison; if (isSetStarted()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); if (lastComparison != 0) {
struct.setQueriesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.done = iprot.readBool(); struct.setDoneIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.started = iprot.readBool(); struct.setStartedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();