Exemplo n.º 1
0
 public void Read (TProtocol iprot)
 {
   bool isset_mutation_map = false;
   bool isset_consistency_level = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Map) {
           {
             Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>();
             TMap _map168 = iprot.ReadMapBegin();
             for( int _i169 = 0; _i169 < _map168.Count; ++_i169)
             {
               byte[] _key170;
               Dictionary<string, List<Mutation>> _val171;
               _key170 = iprot.ReadBinary();
               {
                 _val171 = new Dictionary<string, List<Mutation>>();
                 TMap _map172 = iprot.ReadMapBegin();
                 for( int _i173 = 0; _i173 < _map172.Count; ++_i173)
                 {
                   string _key174;
                   List<Mutation> _val175;
                   _key174 = iprot.ReadString();
                   {
                     _val175 = new List<Mutation>();
                     TList _list176 = iprot.ReadListBegin();
                     for( int _i177 = 0; _i177 < _list176.Count; ++_i177)
                     {
                       Mutation _elem178 = new Mutation();
                       _elem178 = new Mutation();
                       _elem178.Read(iprot);
                       _val175.Add(_elem178);
                     }
                     iprot.ReadListEnd();
                   }
                   _val171[_key174] = _val175;
                 }
                 iprot.ReadMapEnd();
               }
               Mutation_map[_key170] = _val171;
             }
             iprot.ReadMapEnd();
           }
           isset_mutation_map = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           Consistency_level = (ConsistencyLevel)iprot.ReadI32();
           isset_consistency_level = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_mutation_map)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_consistency_level)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
Exemplo n.º 2
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 1:
         if (field.Type == TType.Map) {
           {
             Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>();
             TMap _map147 = iprot.ReadMapBegin();
             for( int _i148 = 0; _i148 < _map147.Count; ++_i148)
             {
               byte[] _key149;
               Dictionary<string, List<Mutation>> _val150;
               _key149 = iprot.ReadBinary();
               {
                 _val150 = new Dictionary<string, List<Mutation>>();
                 TMap _map151 = iprot.ReadMapBegin();
                 for( int _i152 = 0; _i152 < _map151.Count; ++_i152)
                 {
                   string _key153;
                   List<Mutation> _val154;
                   _key153 = iprot.ReadString();
                   {
                     _val154 = new List<Mutation>();
                     TList _list155 = iprot.ReadListBegin();
                     for( int _i156 = 0; _i156 < _list155.Count; ++_i156)
                     {
                       Mutation _elem157 = new Mutation();
                       _elem157 = new Mutation();
                       _elem157.Read(iprot);
                       _val154.Add(_elem157);
                     }
                     iprot.ReadListEnd();
                   }
                   _val150[_key153] = _val154;
                 }
                 iprot.ReadMapEnd();
               }
               Mutation_map[_key149] = _val150;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           Consistency_level = (ConsistencyLevel)iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Exemplo n.º 3
0
 public void Read (TProtocol iprot)
 {
   bool isset_mutation_map = false;
   bool isset_consistency_level = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Map) {
           {
             Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>();
             TMap _map154 = iprot.ReadMapBegin();
             for( int _i155 = 0; _i155 < _map154.Count; ++_i155)
             {
               byte[] _key156;
               Dictionary<string, List<Mutation>> _val157;
               _key156 = iprot.ReadBinary();
               {
                 _val157 = new Dictionary<string, List<Mutation>>();
                 TMap _map158 = iprot.ReadMapBegin();
                 for( int _i159 = 0; _i159 < _map158.Count; ++_i159)
                 {
                   string _key160;
                   List<Mutation> _val161;
                   _key160 = iprot.ReadString();
                   {
                     _val161 = new List<Mutation>();
                     TList _list162 = iprot.ReadListBegin();
                     for( int _i163 = 0; _i163 < _list162.Count; ++_i163)
                     {
                       Mutation _elem164 = new Mutation();
                       _elem164 = new Mutation();
                       _elem164.Read(iprot);
                       _val161.Add(_elem164);
                     }
                     iprot.ReadListEnd();
                   }
                   _val157[_key160] = _val161;
                 }
                 iprot.ReadMapEnd();
               }
               Mutation_map[_key156] = _val157;
             }
             iprot.ReadMapEnd();
           }
           isset_mutation_map = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           Consistency_level = (ConsistencyLevel)iprot.ReadI32();
           isset_consistency_level = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_mutation_map)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
   if (!isset_consistency_level)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
Exemplo n.º 4
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 1:
         if (field.Type == TType.Map) {
           {
             Mutation_map = new Dictionary<byte[], Dictionary<string, List<Mutation>>>();
             TMap _map133 = iprot.ReadMapBegin();
             for( int _i134 = 0; _i134 < _map133.Count; ++_i134)
             {
               byte[] _key135;
               Dictionary<string, List<Mutation>> _val136;
               _key135 = iprot.ReadBinary();
               {
                 _val136 = new Dictionary<string, List<Mutation>>();
                 TMap _map137 = iprot.ReadMapBegin();
                 for( int _i138 = 0; _i138 < _map137.Count; ++_i138)
                 {
                   string _key139;
                   List<Mutation> _val140;
                   _key139 = iprot.ReadString();
                   {
                     _val140 = new List<Mutation>();
                     TList _list141 = iprot.ReadListBegin();
                     for( int _i142 = 0; _i142 < _list141.Count; ++_i142)
                     {
                       Mutation _elem143 = new Mutation();
                       _elem143 = new Mutation();
                       _elem143.Read(iprot);
                       _val140.Add(_elem143);
                     }
                     iprot.ReadListEnd();
                   }
                   _val136[_key139] = _val140;
                 }
                 iprot.ReadMapEnd();
               }
               Mutation_map[_key135] = _val136;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           Consistency_level = (ConsistencyLevel)iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }