本文整理汇总了C#中Apache.Cassandra.InvalidRequestException.Read方法的典型用法代码示例。如果您正苦于以下问题:C# InvalidRequestException.Read方法的具体用法?C# InvalidRequestException.Read怎么用?C# InvalidRequestException.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Apache.Cassandra.InvalidRequestException
的用法示例。
在下文中一共展示了InvalidRequestException.Read方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 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();
}
示例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();
}
示例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) {
{
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();
}
示例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();
}