本文整理汇总了C#中FluentCassandra.Thrift.Protocol.TProtocol.WriteDouble方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteDouble方法的具体用法?C# TProtocol.WriteDouble怎么用?C# TProtocol.WriteDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FluentCassandra.Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteDouble方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("CfDef");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Keyspace != null && __isset.keyspace) {
field.Name = "keyspace";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Keyspace);
oprot.WriteFieldEnd();
}
if (Name != null && __isset.name) {
field.Name = "name";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(Name);
oprot.WriteFieldEnd();
}
if (Column_type != null && __isset.column_type) {
field.Name = "column_type";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Column_type);
oprot.WriteFieldEnd();
}
if (Comparator_type != null && __isset.comparator_type) {
field.Name = "comparator_type";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteString(Comparator_type);
oprot.WriteFieldEnd();
}
if (Subcomparator_type != null && __isset.subcomparator_type) {
field.Name = "subcomparator_type";
field.Type = TType.String;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteString(Subcomparator_type);
oprot.WriteFieldEnd();
}
if (Comment != null && __isset.comment) {
field.Name = "comment";
field.Type = TType.String;
field.ID = 8;
oprot.WriteFieldBegin(field);
oprot.WriteString(Comment);
oprot.WriteFieldEnd();
}
if (__isset.row_cache_size) {
field.Name = "row_cache_size";
field.Type = TType.Double;
field.ID = 9;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Row_cache_size);
oprot.WriteFieldEnd();
}
if (__isset.key_cache_size) {
field.Name = "key_cache_size";
field.Type = TType.Double;
field.ID = 11;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Key_cache_size);
oprot.WriteFieldEnd();
}
if (__isset.read_repair_chance) {
field.Name = "read_repair_chance";
field.Type = TType.Double;
field.ID = 12;
oprot.WriteFieldBegin(field);
oprot.WriteDouble(Read_repair_chance);
oprot.WriteFieldEnd();
}
if (Column_metadata != null && __isset.column_metadata) {
field.Name = "column_metadata";
field.Type = TType.List;
field.ID = 13;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.Struct, Column_metadata.Count));
foreach (ColumnDef _iter57 in Column_metadata)
{
_iter57.Write(oprot);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
if (__isset.gc_grace_seconds) {
field.Name = "gc_grace_seconds";
field.Type = TType.I32;
field.ID = 14;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Gc_grace_seconds);
oprot.WriteFieldEnd();
}
if (Default_validation_class != null && __isset.default_validation_class) {
//.........这里部分代码省略.........