public Object getFieldValue(_Fields field) { switch (field) { case FUNCTION_NAME: return get_functionName(); case FUNC_ARGS: return get_funcArgs(); } throw new IllegalStateException(); }
public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; execute_args typedOther = (execute_args)other; lastComparison = Boolean.valueOf(is_set_functionName()).compareTo(typedOther.is_set_functionName()); if (lastComparison != 0) { return lastComparison; } if (is_set_functionName()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_funcArgs()).compareTo(typedOther.is_set_funcArgs()); if (lastComparison != 0) { return lastComparison; } if (is_set_funcArgs()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.funcArgs, typedOther.funcArgs); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift7.protocol.TCompactProtocol(new org.apache.thrift7.transport.TIOStreamTransport(in))); } catch (org.apache.thrift7.TException te) { throw new java.io.IOException(te); } }
public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; execute_args typedOther = (execute_args)other; lastComparison = Boolean.valueOf(is_set_functionName()).compareTo(typedOther.is_set_functionName()); if (lastComparison != 0) { return lastComparison; } if (is_set_functionName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_funcArgs()).compareTo(typedOther.is_set_funcArgs()); if (lastComparison != 0) { return lastComparison; } if (is_set_funcArgs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcArgs, typedOther.funcArgs); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_functionName()).compareTo(other.is_set_functionName()); if (lastComparison != 0) { return lastComparison; } if (is_set_functionName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_funcArgs()).compareTo(other.is_set_funcArgs()); if (lastComparison != 0) { return lastComparison; } if (is_set_funcArgs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcArgs, other.funcArgs); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(execute_args that) { if (that == null) return false; boolean this_present_functionName = true && this.is_set_functionName(); boolean that_present_functionName = true && that.is_set_functionName(); if (this_present_functionName || that_present_functionName) { if (!(this_present_functionName && that_present_functionName)) return false; if (!this.functionName.equals(that.functionName)) return false; } boolean this_present_funcArgs = true && this.is_set_funcArgs(); boolean that_present_funcArgs = true && that.is_set_funcArgs(); if (this_present_funcArgs || that_present_funcArgs) { if (!(this_present_funcArgs && that_present_funcArgs)) return false; if (!this.funcArgs.equals(that.funcArgs)) return false; } return true; }
public boolean equals(execute_args that) { if (that == null) return false; boolean this_present_functionName = true && this.is_set_functionName(); boolean that_present_functionName = true && that.is_set_functionName(); if (this_present_functionName || that_present_functionName) { if (!(this_present_functionName && that_present_functionName)) return false; if (!this.functionName.equals(that.functionName)) return false; } boolean this_present_funcArgs = true && this.is_set_funcArgs(); boolean that_present_funcArgs = true && that.is_set_funcArgs(); if (this_present_funcArgs || that_present_funcArgs) { if (!(this_present_funcArgs && that_present_funcArgs)) return false; if (!this.funcArgs.equals(that.funcArgs)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_functionName()) { optionals.set(0); } if (struct.is_set_funcArgs()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_functionName()) { oprot.writeString(struct.functionName); } if (struct.is_set_funcArgs()) { oprot.writeString(struct.funcArgs); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case FUNCTION_NAME: if (value == null) { unset_functionName(); } else { set_functionName((String)value); } break; case FUNC_ARGS: if (value == null) { unset_funcArgs(); } else { set_funcArgs((String)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case FUNCTION_NAME: if (value == null) { unset_functionName(); } else { set_functionName((String)value); } break; case FUNC_ARGS: if (value == null) { unset_funcArgs(); } else { set_funcArgs((String)value); } break; } }
public execute_args getEmptyArgsInstance() { return new execute_args(); }
public execute_args deepCopy() { return new execute_args(this); }
public execute_args getEmptyArgsInstance() { return new execute_args(); }
public execute_args deepCopy() { return new execute_args(this); }
protected execute_args getEmptyArgsInstance() { return new execute_args(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_functionName = true && (is_set_functionName()); list.add(present_functionName); if (present_functionName) list.add(functionName); boolean present_funcArgs = true && (is_set_funcArgs()); list.add(present_funcArgs); if (present_funcArgs) list.add(funcArgs); return list.hashCode(); }
public Object getFieldValue(_Fields field) { switch (field) { case FUNCTION_NAME: return get_functionName(); case FUNC_ARGS: return get_funcArgs(); } 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 FUNCTION_NAME: return is_set_functionName(); case FUNC_ARGS: return is_set_funcArgs(); } throw new IllegalStateException(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("execute", org.apache.thrift.protocol.TMessageType.CALL, 0)); execute_args args = new execute_args(); args.set_functionName(functionName); args.set_funcArgs(funcArgs); args.write(prot); prot.writeMessageEnd(); }
public void send_execute(String functionName, String funcArgs) throws org.apache.thrift.TException { execute_args args = new execute_args(); args.set_functionName(functionName); args.set_funcArgs(funcArgs); sendBase("execute", args); }