Пример #1
0
 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, TGetTypeInfoResp struct)
     throws org.apache.thrift.TException {
   TTupleProtocol iprot = (TTupleProtocol) prot;
   struct.status = new TStatus();
   struct.status.read(iprot);
   struct.setStatusIsSet(true);
   BitSet incoming = iprot.readBitSet(1);
   if (incoming.get(0)) {
     struct.operationHandle = new TOperationHandle();
     struct.operationHandle.read(iprot);
     struct.setOperationHandleIsSet(true);
   }
 }
Пример #2
0
 public void read(org.apache.thrift.protocol.TProtocol iprot, TGetTypeInfoResp 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: // STATUS
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.status = new TStatus();
           struct.status.read(iprot);
           struct.setStatusIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 2: // OPERATION_HANDLE
         if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
           struct.operationHandle = new TOperationHandle();
           struct.operationHandle.read(iprot);
           struct.setOperationHandleIsSet(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();
 }