예제 #1
0
 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct)
     throws org.apache.thrift.TException {
   TTupleProtocol iprot = (TTupleProtocol) prot;
   {
     org.apache.thrift.protocol.TList _list568 =
         new org.apache.thrift.protocol.TList(
             org.apache.thrift.protocol.TType.STRING, iprot.readI32());
     struct.filesAdded = new ArrayList<String>(_list568.size);
     String _elem569;
     for (int _i570 = 0; _i570 < _list568.size; ++_i570) {
       _elem569 = iprot.readString();
       struct.filesAdded.add(_elem569);
     }
   }
   struct.setFilesAddedIsSet(true);
   BitSet incoming = iprot.readBitSet(1);
   if (incoming.get(0)) {
     {
       org.apache.thrift.protocol.TList _list571 =
           new org.apache.thrift.protocol.TList(
               org.apache.thrift.protocol.TType.STRING, iprot.readI32());
       struct.filesAddedChecksum = new ArrayList<ByteBuffer>(_list571.size);
       ByteBuffer _elem572;
       for (int _i573 = 0; _i573 < _list571.size; ++_i573) {
         _elem572 = iprot.readBinary();
         struct.filesAddedChecksum.add(_elem572);
       }
     }
     struct.setFilesAddedChecksumIsSet(true);
   }
 }
예제 #2
0
 public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestData 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: // FILES_ADDED
         if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
           {
             org.apache.thrift.protocol.TList _list558 = iprot.readListBegin();
             struct.filesAdded = new ArrayList<String>(_list558.size);
             String _elem559;
             for (int _i560 = 0; _i560 < _list558.size; ++_i560) {
               _elem559 = iprot.readString();
               struct.filesAdded.add(_elem559);
             }
             iprot.readListEnd();
           }
           struct.setFilesAddedIsSet(true);
         } else {
           org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
         }
         break;
       case 2: // FILES_ADDED_CHECKSUM
         if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
           {
             org.apache.thrift.protocol.TList _list561 = iprot.readListBegin();
             struct.filesAddedChecksum = new ArrayList<ByteBuffer>(_list561.size);
             ByteBuffer _elem562;
             for (int _i563 = 0; _i563 < _list561.size; ++_i563) {
               _elem562 = iprot.readBinary();
               struct.filesAddedChecksum.add(_elem562);
             }
             iprot.readListEnd();
           }
           struct.setFilesAddedChecksumIsSet(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();
 }