本文整理汇总了C#中FluentCassandra.Thrift.Protocol.TProtocol.WriteI64方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteI64方法的具体用法?C# TProtocol.WriteI64怎么用?C# TProtocol.WriteI64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FluentCassandra.Thrift.Protocol.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteI64方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
示例2: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("remove_args");
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 = "column_path";
field.Type = TType.Struct;
field.ID = 2;
oprot.WriteFieldBegin(field);
Column_path.Write(oprot);
oprot.WriteFieldEnd();
field.Name = "timestamp";
field.Type = TType.I64;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Timestamp);
oprot.WriteFieldEnd();
if (__isset.consistency_level) {
field.Name = "consistency_level";
field.Type = TType.I32;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteI32((int)Consistency_level);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例3: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("Deletion");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (__isset.timestamp) {
field.Name = "timestamp";
field.Type = TType.I64;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Timestamp);
oprot.WriteFieldEnd();
}
if (Super_column != null && __isset.super_column) {
field.Name = "super_column";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Super_column);
oprot.WriteFieldEnd();
}
if (Predicate != null && __isset.predicate) {
field.Name = "predicate";
field.Type = TType.Struct;
field.ID = 3;
oprot.WriteFieldBegin(field);
Predicate.Write(oprot);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例4: Write
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("Column");
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.WriteBinary(Name);
oprot.WriteFieldEnd();
}
if (Value != null && __isset.value) {
field.Name = "value";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteBinary(Value);
oprot.WriteFieldEnd();
}
if (__isset.timestamp) {
field.Name = "timestamp";
field.Type = TType.I64;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI64(Timestamp);
oprot.WriteFieldEnd();
}
if (__isset.ttl) {
field.Name = "ttl";
field.Type = TType.I32;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteI32(Ttl);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
示例5: 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();
}