当前位置: 首页>>代码示例>>C#>>正文


C# Cassandra.InvalidRequestException类代码示例

本文整理汇总了C#中Apache.Cassandra.InvalidRequestException的典型用法代码示例。如果您正苦于以下问题:C# InvalidRequestException类的具体用法?C# InvalidRequestException怎么用?C# InvalidRequestException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


InvalidRequestException类属于Apache.Cassandra命名空间,在下文中一共展示了InvalidRequestException类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Read

 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<TokenRange>();
       TList _list144 = iprot.ReadListBegin();
       for( int _i145 = 0; _i145 < _list144.Count; ++_i145)
       {
         TokenRange _elem146 = new TokenRange();
         _elem146 = new TokenRange();
         _elem146.Read(iprot);
         Success.Add(_elem146);
       }
       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;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:46,代码来源:Cassandra.cs

示例2: Read

 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<string, List<string>>();
       TMap _map86 = iprot.ReadMapBegin();
       for( int _i87 = 0; _i87 < _map86.Count; ++_i87)
       {
         string _key88;
         List<string> _val89;
         _key88 = iprot.ReadString();
         {
           _val89 = new List<string>();
           TList _list90 = iprot.ReadListBegin();
           for( int _i91 = 0; _i91 < _list90.Count; ++_i91)
           {
             string _elem92 = null;
             _elem92 = iprot.ReadString();
             _val89.Add(_elem92);
           }
           iprot.ReadListEnd();
         }
         Success[_key88] = _val89;
       }
       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;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
开发者ID:KevinT,项目名称:fluentcassandra,代码行数:57,代码来源:Cassandra.cs

示例3: Read

 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) {
     {
       this.success = new Dictionary<byte[], int>();
       TMap _map59 = iprot.ReadMapBegin();
       for( int _i60 = 0; _i60 < _map59.Count; ++_i60)
       {
         byte[] _key61;
         int _val62;
         _key61 = iprot.ReadBinary();
         _val62 = iprot.ReadI32();
         this.success[_key61] = _val62;
       }
       iprot.ReadMapEnd();
     }
     this.__isset.success = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     this.ire = new InvalidRequestException();
     this.ire.Read(iprot);
     this.__isset.ire = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     this.ue = new UnavailableException();
     this.ue.Read(iprot);
     this.__isset.ue = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     this.te = new TimedOutException();
     this.te.Read(iprot);
     this.__isset.te = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
开发者ID:chak71,项目名称:CassandraWorkbench,代码行数:67,代码来源:Cassandra.cs

示例4: Read

 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<string, List<string>>();
       TMap _map143 = iprot.ReadMapBegin();
       for( int _i144 = 0; _i144 < _map143.Count; ++_i144)
       {
         string _key145;
         List<string> _val146;
         _key145 = iprot.ReadString();
         {
           _val146 = new List<string>();
           TList _list147 = iprot.ReadListBegin();
           for( int _i148 = 0; _i148 < _list147.Count; ++_i148)
           {
             string _elem149 = null;
             _elem149 = iprot.ReadString();
             _val146.Add(_elem149);
           }
           iprot.ReadListEnd();
         }
         Success[_key145] = _val146;
       }
       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;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
开发者ID:shawnbissell,项目名称:fluentcassandra,代码行数:57,代码来源:Cassandra.cs

示例5: CassandraOperationException

 public CassandraOperationException(InvalidRequestException exc)
     : base(exc.Why, exc)
 {
 }
开发者ID:nativex,项目名称:fluentcassandra,代码行数:4,代码来源:CassandraOperationException.cs

示例6: Read

 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) {
     {
       this.success = new Dictionary<string, List<ColumnOrSuperColumn>>();
       TMap _map38 = iprot.ReadMapBegin();
       for( int _i39 = 0; _i39 < _map38.Count; ++_i39)
       {
         string _key40;
         List<ColumnOrSuperColumn> _val41;
         _key40 = iprot.ReadString();
         {
           _val41 = new List<ColumnOrSuperColumn>();
           TList _list42 = iprot.ReadListBegin();
           for( int _i43 = 0; _i43 < _list42.Count; ++_i43)
           {
             ColumnOrSuperColumn _elem44 = new ColumnOrSuperColumn();
             _elem44 = new ColumnOrSuperColumn();
             _elem44.Read(iprot);
             _val41.Add(_elem44);
           }
           iprot.ReadListEnd();
         }
         this.success[_key40] = _val41;
       }
       iprot.ReadMapEnd();
     }
     this.__isset.success = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     this.ire = new InvalidRequestException();
     this.ire.Read(iprot);
     this.__isset.ire = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     this.ue = new UnavailableException();
     this.ue.Read(iprot);
     this.__isset.ue = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     this.te = new TimedOutException();
     this.te.Read(iprot);
     this.__isset.te = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
开发者ID:ehornbostel,项目名称:hectorsharp,代码行数:78,代码来源:Cassandra.cs

示例7: Read

 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<string, string>();
             TMap _map178 = iprot.ReadMapBegin();
             for( int _i179 = 0; _i179 < _map178.Count; ++_i179)
             {
               string _key180;
               string _val181;
               _key180 = iprot.ReadString();
               _val181 = iprot.ReadString();
               Success[_key180] = _val181;
             }
             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;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
开发者ID:Jacky1,项目名称:cassandra-sharp,代码行数:47,代码来源:Cassandra.cs


注:本文中的Apache.Cassandra.InvalidRequestException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。