@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); builder.append(present_sessionHandle); if (present_sessionHandle) builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); builder.append(present_statement); if (present_statement) builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); builder.append(present_confOverlay); if (present_confOverlay) builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); builder.append(present_runAsync); if (present_runAsync) builder.append(runAsync); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); builder.append(present_sessionHandle); if (present_sessionHandle) builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); builder.append(present_statement); if (present_statement) builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); builder.append(present_confOverlay); if (present_confOverlay) builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); builder.append(present_runAsync); if (present_runAsync) builder.append(runAsync); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); builder.append(present_sessionHandle); if (present_sessionHandle) builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); builder.append(present_statement); if (present_statement) builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); builder.append(present_confOverlay); if (present_confOverlay) builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); builder.append(present_runAsync); if (present_runAsync) builder.append(runAsync); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); builder.append(present_sessionHandle); if (present_sessionHandle) builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); builder.append(present_statement); if (present_statement) builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); builder.append(present_confOverlay); if (present_confOverlay) builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); builder.append(present_runAsync); if (present_runAsync) builder.append(runAsync); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public TExecuteStatementReq(TExecuteStatementReq other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetStatement()) { this.statement = other.statement; } if (other.isSetConfOverlay()) { Map<String,String> __this__confOverlay = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.confOverlay.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__confOverlay_copy_key = other_element_key; String __this__confOverlay_copy_value = other_element_value; __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; }
/** * Performs a deep copy on <i>other</i>. */ public TExecuteStatementReq(TExecuteStatementReq other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetStatement()) { this.statement = other.statement; } if (other.isSetConfOverlay()) { Map<String,String> __this__confOverlay = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.confOverlay.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__confOverlay_copy_key = other_element_key; String __this__confOverlay_copy_value = other_element_value; __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; }
/** * Performs a deep copy on <i>other</i>. */ public TExecuteStatementReq(TExecuteStatementReq other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetStatement()) { this.statement = other.statement; } if (other.isSetConfOverlay()) { Map<String,String> __this__confOverlay = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.confOverlay.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__confOverlay_copy_key = other_element_key; String __this__confOverlay_copy_value = other_element_value; __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; }
/** 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 SESSION_HANDLE: return isSetSessionHandle(); case STATEMENT: return isSetStatement(); case CONF_OVERLAY: return isSetConfOverlay(); case RUN_ASYNC: return isSetRunAsync(); } 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 SESSION_HANDLE: return isSetSessionHandle(); case STATEMENT: return isSetStatement(); case CONF_OVERLAY: return isSetConfOverlay(); case RUN_ASYNC: return isSetRunAsync(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TExecuteStatementReq(TExecuteStatementReq other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetStatement()) { this.statement = other.statement; } if (other.isSetConfOverlay()) { Map<String,String> __this__confOverlay = new HashMap<String,String>(); for (Map.Entry<String, String> other_element : other.confOverlay.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__confOverlay_copy_key = other_element_key; String __this__confOverlay_copy_value = other_element_value; __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; }
/** 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 SESSION_HANDLE: return isSetSessionHandle(); case STATEMENT: return isSetStatement(); case CONF_OVERLAY: return isSetConfOverlay(); case RUN_ASYNC: return isSetRunAsync(); } 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 SESSION_HANDLE: return isSetSessionHandle(); case STATEMENT: return isSetStatement(); case CONF_OVERLAY: return isSetConfOverlay(); case RUN_ASYNC: return isSetRunAsync(); } throw new IllegalStateException(); }
if (struct.isSetConfOverlay()) { oprot.writeFieldBegin(CONF_OVERLAY_FIELD_DESC);
if (struct.isSetConfOverlay()) { oprot.writeFieldBegin(CONF_OVERLAY_FIELD_DESC);
if (struct.isSetConfOverlay()) { oprot.writeFieldBegin(CONF_OVERLAY_FIELD_DESC);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.sessionHandle.write(oprot); oprot.writeString(struct.statement); BitSet optionals = new BitSet(); if (struct.isSetConfOverlay()) { optionals.set(0); } if (struct.isSetRunAsync()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetConfOverlay()) { { oprot.writeI32(struct.confOverlay.size()); for (Map.Entry<String, String> _iter167 : struct.confOverlay.entrySet()) { oprot.writeString(_iter167.getKey()); oprot.writeString(_iter167.getValue()); } } } if (struct.isSetRunAsync()) { oprot.writeBool(struct.runAsync); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.sessionHandle.write(oprot); oprot.writeString(struct.statement); BitSet optionals = new BitSet(); if (struct.isSetConfOverlay()) { optionals.set(0); } if (struct.isSetRunAsync()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetConfOverlay()) { { oprot.writeI32(struct.confOverlay.size()); for (Map.Entry<String, String> _iter167 : struct.confOverlay.entrySet()) { oprot.writeString(_iter167.getKey()); oprot.writeString(_iter167.getValue()); } } } if (struct.isSetRunAsync()) { oprot.writeBool(struct.runAsync); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.sessionHandle.write(oprot); oprot.writeString(struct.statement); BitSet optionals = new BitSet(); if (struct.isSetConfOverlay()) { optionals.set(0); } if (struct.isSetRunAsync()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetConfOverlay()) { { oprot.writeI32(struct.confOverlay.size()); for (Map.Entry<String, String> _iter167 : struct.confOverlay.entrySet()) { oprot.writeString(_iter167.getKey()); oprot.writeString(_iter167.getValue()); } } } if (struct.isSetRunAsync()) { oprot.writeBool(struct.runAsync); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.sessionHandle.write(oprot); oprot.writeString(struct.statement); BitSet optionals = new BitSet(); if (struct.isSetConfOverlay()) { optionals.set(0); } if (struct.isSetRunAsync()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetConfOverlay()) { { oprot.writeI32(struct.confOverlay.size()); for (Map.Entry<String, String> _iter167 : struct.confOverlay.entrySet()) { oprot.writeString(_iter167.getKey()); oprot.writeString(_iter167.getValue()); } } } if (struct.isSetRunAsync()) { oprot.writeBool(struct.runAsync); } }
boolean this_present_confOverlay = true && this.isSetConfOverlay(); boolean that_present_confOverlay = true && that.isSetConfOverlay(); if (this_present_confOverlay || that_present_confOverlay) { if (!(this_present_confOverlay && that_present_confOverlay))