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


C# TProtocol.WriteBool方法代码示例

本文整理汇总了C#中FluentCassandra.Thrift.Protocol.TProtocol.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteBool方法的具体用法?C# TProtocol.WriteBool怎么用?C# TProtocol.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FluentCassandra.Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteBool方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SliceRange");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "start";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Start);
   oprot.WriteFieldEnd();
   field.Name = "finish";
   field.Type = TType.String;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteBinary(Finish);
   oprot.WriteFieldEnd();
   field.Name = "reversed";
   field.Type = TType.Bool;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteBool(Reversed);
   oprot.WriteFieldEnd();
   field.Name = "count";
   field.Type = TType.I32;
   field.ID = 4;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32(Count);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:achinn,项目名称:fluentcassandra,代码行数:31,代码来源:SliceRange.cs

示例2: Write


//.........这里部分代码省略.........
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Key_cache_save_period_in_seconds);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_flush_after_mins) {
     field.Name = "memtable_flush_after_mins";
     field.Type = TType.I32;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Memtable_flush_after_mins);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_throughput_in_mb) {
     field.Name = "memtable_throughput_in_mb";
     field.Type = TType.I32;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Memtable_throughput_in_mb);
     oprot.WriteFieldEnd();
   }
   if (__isset.memtable_operations_in_millions) {
     field.Name = "memtable_operations_in_millions";
     field.Type = TType.Double;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Memtable_operations_in_millions);
     oprot.WriteFieldEnd();
   }
   if (__isset.replicate_on_write) {
     field.Name = "replicate_on_write";
     field.Type = TType.Bool;
     field.ID = 24;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Replicate_on_write);
     oprot.WriteFieldEnd();
   }
   if (__isset.merge_shards_chance) {
     field.Name = "merge_shards_chance";
     field.Type = TType.Double;
     field.ID = 25;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Merge_shards_chance);
     oprot.WriteFieldEnd();
   }
   if (Key_validation_class != null && __isset.key_validation_class) {
     field.Name = "key_validation_class";
     field.Type = TType.String;
     field.ID = 26;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Key_validation_class);
     oprot.WriteFieldEnd();
   }
   if (Row_cache_provider != null && __isset.row_cache_provider) {
     field.Name = "row_cache_provider";
     field.Type = TType.String;
     field.ID = 27;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Row_cache_provider);
     oprot.WriteFieldEnd();
   }
   if (Key_alias != null && __isset.key_alias) {
     field.Name = "key_alias";
     field.Type = TType.String;
     field.ID = 28;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Key_alias);
开发者ID:nathannis,项目名称:fluentcassandra,代码行数:67,代码来源:CfDef.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TimedOutException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.acknowledged_by) {
     field.Name = "acknowledged_by";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Acknowledged_by);
     oprot.WriteFieldEnd();
   }
   if (__isset.acknowledged_by_batchlog) {
     field.Name = "acknowledged_by_batchlog";
     field.Type = TType.Bool;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Acknowledged_by_batchlog);
     oprot.WriteFieldEnd();
   }
   if (__isset.paxos_in_progress) {
     field.Name = "paxos_in_progress";
     field.Type = TType.Bool;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Paxos_in_progress);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:achinn,项目名称:fluentcassandra,代码行数:31,代码来源:TimedOutException.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("KsDef");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (Strategy_class != null && __isset.strategy_class) {
     field.Name = "strategy_class";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Strategy_class);
     oprot.WriteFieldEnd();
   }
   if (Strategy_options != null && __isset.strategy_options) {
     field.Name = "strategy_options";
     field.Type = TType.Map;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Strategy_options.Count));
       foreach (string _iter67 in Strategy_options.Keys)
       {
         oprot.WriteString(_iter67);
         oprot.WriteString(Strategy_options[_iter67]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.replication_factor) {
     field.Name = "replication_factor";
     field.Type = TType.I32;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Replication_factor);
     oprot.WriteFieldEnd();
   }
   if (Cf_defs != null && __isset.cf_defs) {
     field.Name = "cf_defs";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Cf_defs.Count));
       foreach (CfDef _iter68 in Cf_defs)
       {
         _iter68.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.durable_writes) {
     field.Name = "durable_writes";
     field.Type = TType.Bool;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Durable_writes);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:nathannis,项目名称:fluentcassandra,代码行数:70,代码来源:KsDef.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CASResult");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "success";
   field.Type = TType.Bool;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteBool(Success);
   oprot.WriteFieldEnd();
   if (Current_values != null && __isset.current_values) {
     field.Name = "current_values";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Current_values.Count));
       foreach (Column _iter27 in Current_values)
       {
         _iter27.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:achinn,项目名称:fluentcassandra,代码行数:28,代码来源:CASResult.cs


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