public ComponentObject deepCopy() { return new ComponentObject(this); }
public static ComponentObject shell(ShellComponent value) { ComponentObject x = new ComponentObject(); x.set_shell(value); return x; }
public static ComponentObject java_object(JavaObject value) { ComponentObject x = new ComponentObject(); x.set_java_object(value); return x; }
public static ComponentObject serialized_java(java.nio.ByteBuffer value) { ComponentObject x = new ComponentObject(); x.set_serialized_java(value); return x; }
public static ComponentObject serialized_java(byte[] value) { ComponentObject x = new ComponentObject(); x.set_serialized_java(java.nio.ByteBuffer.wrap(value.clone())); return x; }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
/** * Performs a deep copy on <i>other</i>. */ public Bolt(Bolt other) { if (other.is_set_bolt_object()) { this.bolt_object = new ComponentObject(other.bolt_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
/** * Performs a deep copy on <i>other</i>. */ public StateSpoutSpec(StateSpoutSpec other) { if (other.is_set_state_spout_object()) { this.state_spout_object = new ComponentObject(other.state_spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, SpoutSpec struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.spout_object = new ComponentObject(); struct.spout_object.read(iprot); struct.set_spout_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, Bolt struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.bolt_object = new ComponentObject(); struct.bolt_object.read(iprot); struct.set_bolt_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, StateSpoutSpec struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.state_spout_object = new ComponentObject(); struct.state_spout_object.read(iprot); struct.set_state_spout_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
case 1: // SPOUT_OBJECT if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.spout_object = new ComponentObject(); struct.spout_object.read(iprot); struct.set_spout_object_isSet(true);
case 1: // BOLT_OBJECT if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.bolt_object = new ComponentObject(); struct.bolt_object.read(iprot); struct.set_bolt_object_isSet(true);
case 1: // STATE_SPOUT_OBJECT if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.state_spout_object = new ComponentObject(); struct.state_spout_object.read(iprot); struct.set_state_spout_object_isSet(true);
public static ComponentObject java_object(JavaObject value) { ComponentObject x = new ComponentObject(); x.set_java_object(value); return x; }
public static ComponentObject serialized_java(byte[] value) { ComponentObject x = new ComponentObject(); x.set_serialized_java(ByteBuffer.wrap(Arrays.copyOf(value, value.length))); return x; }
public static ComponentObject shell(ShellComponent value) { ComponentObject x = new ComponentObject(); x.set_shell(value); return x; }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
/** * Performs a deep copy on <i>other</i>. */ public Bolt(Bolt other) { if (other.is_set_bolt_object()) { this.bolt_object = new ComponentObject(other.bolt_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SpoutSpec struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.spout_object = new ComponentObject(); struct.spout_object.read(iprot); struct.set_spout_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }