Ejemplo n.º 1
0
 public void Read(TProtocol iprot)
 {
     TField field;
       TStruct struc = iprot.ReadStructBegin();
       while (true)
       {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) {
       break;
     }
     switch (field.ID)
     {
       case 0:
     if (field.Type == TType.List) {
       {
         this.success = new List<superColumn_t>();
         TList _list26 = iprot.ReadListBegin();
         for( int _i27 = 0; _i27 < _list26.Count; ++_i27)
         {
           superColumn_t _elem28 = new superColumn_t();
           _elem28 = new superColumn_t();
           _elem28.Read(iprot);
           this.success.Add(_elem28);
         }
         iprot.ReadListEnd();
       }
       this.__isset.success = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
Ejemplo n.º 2
0
 public void Read(TProtocol iprot)
 {
     TField field;
       TStruct struc = iprot.ReadStructBegin();
       while (true)
       {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) {
       break;
     }
     switch (field.ID)
     {
       case 0:
     if (field.Type == TType.Struct) {
       this.success = new superColumn_t();
       this.success.Read(iprot);
       this.__isset.success = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
Ejemplo n.º 3
0
 public void Read(TProtocol iprot)
 {
     TField field;
     TStruct struc = iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.String) {
         this.table = iprot.ReadString();
         this.__isset.table = true;
       } else {
         TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.String) {
         this.key = iprot.ReadString();
         this.__isset.key = true;
       } else {
         TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Map) {
         {
           this.cfmap = new Dictionary<string, List<superColumn_t>>();
           TMap _map13 = iprot.ReadMapBegin();
           for( int _i14 = 0; _i14 < _map13.Count; ++_i14)
           {
             string _key15;
             List<superColumn_t> _val16;
             _key15 = iprot.ReadString();
             {
               _val16 = new List<superColumn_t>();
               TList _list17 = iprot.ReadListBegin();
               for( int _i18 = 0; _i18 < _list17.Count; ++_i18)
               {
                 superColumn_t _elem19 = new superColumn_t();
                 _elem19 = new superColumn_t();
                 _elem19.Read(iprot);
                 _val16.Add(_elem19);
               }
               iprot.ReadListEnd();
             }
             this.cfmap[_key15] = _val16;
           }
           iprot.ReadMapEnd();
         }
         this.__isset.cfmap = true;
       } else {
         TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }