Read() публичный Метод

public Read ( TProtocol iprot ) : void
iprot Thrift.Protocol.TProtocol
Результат void
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.Map) {
     {
       Success = new Dictionary<byte[], List<ColumnOrSuperColumn>>();
       TMap _map91 = iprot.ReadMapBegin();
       for( int _i92 = 0; _i92 < _map91.Count; ++_i92)
       {
         byte[] _key93;
         List<ColumnOrSuperColumn> _val94;
         _key93 = iprot.ReadBinary();
         {
           _val94 = new List<ColumnOrSuperColumn>();
           TList _list95 = iprot.ReadListBegin();
           for( int _i96 = 0; _i96 < _list95.Count; ++_i96)
           {
             ColumnOrSuperColumn _elem97 = new ColumnOrSuperColumn();
             _elem97 = new ColumnOrSuperColumn();
             _elem97.Read(iprot);
             _val94.Add(_elem97);
           }
           iprot.ReadListEnd();
         }
         Success[_key93] = _val94;
       }
       iprot.ReadMapEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.Map) {
     {
       Success = new Dictionary<byte[], int>();
       TMap _map104 = iprot.ReadMapBegin();
       for( int _i105 = 0; _i105 < _map104.Count; ++_i105)
       {
         byte[] _key106;
         int _val107;
         _key106 = iprot.ReadBinary();
         _val107 = iprot.ReadI32();
         Success[_key106] = _val107;
       }
       iprot.ReadMapEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.List) {
     {
       Success = new List<ColumnOrSuperColumn>();
       TList _list83 = iprot.ReadListBegin();
       for( int _i84 = 0; _i84 < _list83.Count; ++_i84)
       {
         ColumnOrSuperColumn _elem85 = new ColumnOrSuperColumn();
         _elem85 = new ColumnOrSuperColumn();
         _elem85.Read(iprot);
         Success.Add(_elem85);
       }
       iprot.ReadListEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.List) {
     {
       Success = new List<KeySlice>();
       TList _list109 = iprot.ReadListBegin();
       for( int _i110 = 0; _i110 < _list109.Count; ++_i110)
       {
         KeySlice _elem111 = new KeySlice();
         _elem111 = new KeySlice();
         _elem111.Read(iprot);
         Success.Add(_elem111);
       }
       iprot.ReadListEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Пример #6
0
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.Map) {
     {
       Success = new Dictionary<byte[], List<ColumnOrSuperColumn>>();
       TMap _map46 = iprot.ReadMapBegin();
       for( int _i47 = 0; _i47 < _map46.Count; ++_i47)
       {
         byte[] _key48;
         List<ColumnOrSuperColumn> _val49;
         _key48 = iprot.ReadBinary();
         {
           _val49 = new List<ColumnOrSuperColumn>();
           TList _list50 = iprot.ReadListBegin();
           for( int _i51 = 0; _i51 < _list50.Count; ++_i51)
           {
             ColumnOrSuperColumn _elem52 = new ColumnOrSuperColumn();
             _elem52 = new ColumnOrSuperColumn();
             _elem52.Read(iprot);
             _val49.Add(_elem52);
           }
           iprot.ReadListEnd();
         }
         Success[_key48] = _val49;
       }
       iprot.ReadMapEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ire = new InvalidRequestException();
     Ire.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Ue = new UnavailableException();
     Ue.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     Te = new TimedOutException();
     Te.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Пример #7
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 0:
         if (field.Type == TType.Map) {
           {
             Success = new Dictionary<byte[], List<ColumnOrSuperColumn>>();
             TMap _map103 = iprot.ReadMapBegin();
             for( int _i104 = 0; _i104 < _map103.Count; ++_i104)
             {
               byte[] _key105;
               List<ColumnOrSuperColumn> _val106;
               _key105 = iprot.ReadBinary();
               {
                 _val106 = new List<ColumnOrSuperColumn>();
                 TList _list107 = iprot.ReadListBegin();
                 for( int _i108 = 0; _i108 < _list107.Count; ++_i108)
                 {
                   ColumnOrSuperColumn _elem109 = new ColumnOrSuperColumn();
                   _elem109 = new ColumnOrSuperColumn();
                   _elem109.Read(iprot);
                   _val106.Add(_elem109);
                 }
                 iprot.ReadListEnd();
               }
               Success[_key105] = _val106;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           Ire = new InvalidRequestException();
           Ire.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Ue = new UnavailableException();
           Ue.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.Struct) {
           Te = new TimedOutException();
           Te.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }