本文整理汇总了C#中FluentCassandra.Thrift.Protocol.TField类的典型用法代码示例。如果您正苦于以下问题:C# TField类的具体用法?C# TField怎么用?C# TField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TField类属于FluentCassandra.Thrift.Protocol命名空间,在下文中一共展示了TField类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("AuthenticationException");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "why";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Why);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:13,代码来源:AuthenticationException.cs
示例2: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("InvalidRequestException");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Why != null && __isset.why) {
field.Name = "why";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Why);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:kenangell,项目名称:fluentcassandra,代码行数:15,代码来源:InvalidRequestException.cs
示例3: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CounterColumn");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "name";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Name);
oprot.WriteFieldEnd();
field.Name = "value";
field.Type = TType.I64;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Value);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:19,代码来源:CounterColumn.cs
示例4: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("KeyCount");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "key";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Key);
oprot.WriteFieldEnd();
field.Name = "count";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Count);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:19,代码来源:KeyCount.cs
示例5: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("AuthenticationRequest");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "credentials";
field.Type = TType.Map;
field.ID = 1;
oprot.WriteFieldBegin(field);
{
oprot.WriteMapBegin(new TMap(TType.String, TType.String, Credentials.Count));
foreach (string _iter44 in Credentials.Keys)
{
oprot.WriteString(_iter44);
oprot.WriteString(Credentials[_iter44]);
}
oprot.WriteMapEnd();
}
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:21,代码来源:AuthenticationRequest.cs
示例6: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("ColumnPath");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Column_family != null && __isset.column_family) {
field.Name = "column_family";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Column_family);
oprot.WriteFieldEnd();
}
if (Super_column != null && __isset.super_column) {
field.Name = "super_column";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Super_column);
oprot.WriteFieldEnd();
}
if (Column != null && __isset.column) {
field.Name = "column";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Column);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:kenangell,项目名称:fluentcassandra,代码行数:31,代码来源:ColumnPath.cs
示例7: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("batch_mutate_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.ire) {
if (Ire != null) {
field.Name = "Ire";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
Ire.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.ue) {
if (Ue != null) {
field.Name = "Ue";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
Ue.Write(oprot);
oprot.WriteFieldEnd();
}
} else if (this.__isset.te) {
if (Te != null) {
field.Name = "Te";
field.Type = TType.Struct;
field.ID = 3;
oprot.WriteFieldBegin(field);
Te.Write(oprot);
oprot.WriteFieldEnd();
}
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:36,代码来源:Cassandra.cs
示例8: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CfSplit");
oprot.WriteStructBegin(struc);
TField field = new TField();
field.Name = "start_token";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Start_token);
oprot.WriteFieldEnd();
field.Name = "end_token";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(End_token);
oprot.WriteFieldEnd();
field.Name = "row_count";
field.Type = TType.I64;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Row_count);
oprot.WriteFieldEnd();
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:achinn,项目名称:fluentcassandra,代码行数:25,代码来源:CfSplit.cs
示例9: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CqlPreparedResult");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.itemId) {
field.Name = "itemId";
field.Type = TType.I32;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI32(ItemId);
oprot.WriteFieldEnd();
}
if (__isset.count) {
field.Name = "count";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Count);
oprot.WriteFieldEnd();
}
if (Variable_types != null && __isset.variable_types) {
field.Name = "variable_types";
field.Type = TType.List;
field.ID = 3;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, Variable_types.Count));
foreach (string _iter93 in Variable_types)
{
oprot.WriteString(_iter93);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (Variable_names != null && __isset.variable_names) {
field.Name = "variable_names";
field.Type = TType.List;
field.ID = 4;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, Variable_names.Count));
foreach (string _iter94 in Variable_names)
{
oprot.WriteString(_iter94);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
开发者ID:kenangell,项目名称:fluentcassandra,代码行数:53,代码来源:CqlPreparedResult.cs
注:本文中的FluentCassandra.Thrift.Protocol.TField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论