예제 #1
0
 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, Bolt struct)
     throws org.apache.thrift.TException {
   TTupleProtocol iprot = (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);
 }
예제 #2
0
 public void read(org.apache.thrift.protocol.TProtocol iprot, Bolt struct)
     throws org.apache.thrift.TException {
   org.apache.thrift.protocol.TField schemeField;
   iprot.readStructBegin();
   while (true) {
     schemeField = iprot.readFieldBegin();
     if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
       break;
     }
     switch (schemeField.id) {
       case 1: // BOLT_OBJECT
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.bolt_object = new ComponentObject();
           struct.bolt_object.read(iprot);
           struct.set_bolt_object_isSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 2: // COMMON
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.common = new ComponentCommon();
           struct.common.read(iprot);
           struct.set_common_isSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       default:
         org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   struct.validate();
 }