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


C# TProtocol.WriteMapEnd方法代码示例

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


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

示例1: Write

		public void Write(TProtocol oprot)
		{
			var struc = new TStruct("RestRequest");
			oprot.WriteStructBegin(struc);
			var field = new TField();
			if (__isset.method)
			{
				field.Name = "method";
				field.Type = TType.I32;
				field.ID = 1;
				oprot.WriteFieldBegin(field);
				oprot.WriteI32((int) method);
				oprot.WriteFieldEnd();
			}
			if (uri != null && __isset.uri)
			{
				field.Name = "uri";
				field.Type = TType.String;
				field.ID = 2;
				oprot.WriteFieldBegin(field);
				oprot.WriteString(uri);
				oprot.WriteFieldEnd();
			}
			if (parameters != null && __isset.parameters)
			{
				field.Name = "parameters";
				field.Type = TType.Map;
				field.ID = 3;
				oprot.WriteFieldBegin(field);
				{
					oprot.WriteMapBegin(new TMap(TType.String, TType.String, parameters.Count));
					foreach (string _iter8 in parameters.Keys)
					{
						oprot.WriteString(_iter8);
						oprot.WriteString(parameters[_iter8]);
						oprot.WriteMapEnd();
					}
				}
				oprot.WriteFieldEnd();
			}
			if (headers != null && __isset.headers)
			{
				field.Name = "headers";
				field.Type = TType.Map;
				field.ID = 4;
				oprot.WriteFieldBegin(field);
				{
					oprot.WriteMapBegin(new TMap(TType.String, TType.String, headers.Count));
					foreach (string _iter9 in headers.Keys)
					{
						oprot.WriteString(_iter9);
						oprot.WriteString(headers[_iter9]);
						oprot.WriteMapEnd();
					}
				}
				oprot.WriteFieldEnd();
			}
			if (body != null && __isset.body)
			{
				field.Name = "body";
				field.Type = TType.String;
				field.ID = 5;
				oprot.WriteFieldBegin(field);
				oprot.WriteBinary(body);
				oprot.WriteFieldEnd();
			}
			oprot.WriteFieldStop();
			oprot.WriteStructEnd();
		}
开发者ID:starckgates,项目名称:ElasticSearch.Net,代码行数:69,代码来源:RestRequest.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("NoteCollectionCounts");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (NotebookCounts != null && __isset.notebookCounts) {
     field.Name = "notebookCounts";
     field.Type = TType.Map;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I32, NotebookCounts.Count));
       foreach (string _iter84 in NotebookCounts.Keys)
       {
         oprot.WriteString(_iter84);
         oprot.WriteI32(NotebookCounts[_iter84]);
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (TagCounts != null && __isset.tagCounts) {
     field.Name = "tagCounts";
     field.Type = TType.Map;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I32, TagCounts.Count));
       foreach (string _iter85 in TagCounts.Keys)
       {
         oprot.WriteString(_iter85);
         oprot.WriteI32(TagCounts[_iter85]);
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.trashCount) {
     field.Name = "trashCount";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(TrashCount);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:47,代码来源:NoteCollectionCounts.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LazyMap");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (KeysOnly != null && __isset.keysOnly) {
     field.Name = "keysOnly";
     field.Type = TType.Set;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteSetBegin(new TSet(TType.String, KeysOnly.Count));
       foreach (string _iter15 in KeysOnly)
       {
         oprot.WriteString(_iter15);
         oprot.WriteSetEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (FullMap != null && __isset.fullMap) {
     field.Name = "fullMap";
     field.Type = TType.Map;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, FullMap.Count));
       foreach (string _iter16 in FullMap.Keys)
       {
         oprot.WriteString(_iter16);
         oprot.WriteString(FullMap[_iter16]);
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:Glympse,项目名称:evernote-sdk-csharp,代码行数:38,代码来源:LazyMap.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCBeginLoadStageMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (HeroGroup1List != null && __isset.heroGroup1List) {
     field.Name = "heroGroup1List";
     field.Type = TType.Map;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup1List.Count));
       foreach (int _iter29 in HeroGroup1List.Keys)
       {
         oprot.WriteI32(_iter29);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup1List[_iter29].Count));
           foreach (long _iter30 in HeroGroup1List[_iter29])
           {
             oprot.WriteI64(_iter30);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (HeroGroup2List != null && __isset.heroGroup2List) {
     field.Name = "heroGroup2List";
     field.Type = TType.Map;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup2List.Count));
       foreach (int _iter31 in HeroGroup2List.Keys)
       {
         oprot.WriteI32(_iter31);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup2List[_iter31].Count));
           foreach (long _iter32 in HeroGroup2List[_iter31])
           {
             oprot.WriteI64(_iter32);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (HeroGroup3List != null && __isset.heroGroup3List) {
     field.Name = "heroGroup3List";
     field.Type = TType.Map;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I32, TType.List, HeroGroup3List.Count));
       foreach (int _iter33 in HeroGroup3List.Keys)
       {
         oprot.WriteI32(_iter33);
         {
           oprot.WriteListBegin(new TList(TType.I64, HeroGroup3List[_iter33].Count));
           foreach (long _iter34 in HeroGroup3List[_iter33])
           {
             oprot.WriteI64(_iter34);
           }
           oprot.WriteListEnd();
         }
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:76,代码来源:SCBeginLoadStageMsg.cs

示例5: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("batch_mutate_args");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     if (Mutation_map != null && __isset.mutation_map) {
       field.Name = "mutation_map";
       field.Type = TType.Map;
       field.ID = 1;
       oprot.WriteFieldBegin(field);
       {
     oprot.WriteMapBegin(new TMap(TType.String, TType.Map, Mutation_map.Count));
     foreach (byte[] _iter128 in Mutation_map.Keys)
     {
       oprot.WriteBinary(_iter128);
       {
     oprot.WriteMapBegin(new TMap(TType.String, TType.List, Mutation_map[_iter128].Count));
     foreach (string _iter129 in Mutation_map[_iter128].Keys)
     {
       oprot.WriteString(_iter129);
       {
         oprot.WriteListBegin(new TList(TType.Struct, Mutation_map[_iter128][_iter129].Count));
         foreach (Mutation _iter130 in Mutation_map[_iter128][_iter129])
         {
           _iter130.Write(oprot);
         }
         oprot.WriteListEnd();
       }
     }
     oprot.WriteMapEnd();
       }
     }
     oprot.WriteMapEnd();
       }
       oprot.WriteFieldEnd();
     }
     if (__isset.consistency_level) {
       field.Name = "consistency_level";
       field.Type = TType.I32;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32((int)Consistency_level);
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:47,代码来源:Cassandra.cs

示例6: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ColumnDef");
   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 (Validation_class != null && __isset.validation_class) {
     field.Name = "validation_class";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Validation_class);
     oprot.WriteFieldEnd();
   }
   if (__isset.index_type) {
     field.Name = "index_type";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Index_type);
     oprot.WriteFieldEnd();
   }
   if (Index_name != null && __isset.index_name) {
     field.Name = "index_name";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Index_name);
     oprot.WriteFieldEnd();
   }
   if (Index_options != null && __isset.index_options) {
     field.Name = "index_options";
     field.Type = TType.Map;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Index_options.Count));
       foreach (string _iter45 in Index_options.Keys)
       {
         oprot.WriteString(_iter45);
         oprot.WriteString(Index_options[_iter45]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:pchalamet,项目名称:cassandra-sharp,代码行数:55,代码来源:ColumnDef.cs

示例7: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("EndItem");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (__isset.Ack) {
     field.Name = "Ack";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Ack);
     oprot.WriteFieldEnd();
       }
       if (EbayTokenID != null && __isset.EbayTokenID) {
     field.Name = "EbayTokenID";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(EbayTokenID);
     oprot.WriteFieldEnd();
       }
       if (InventoryID != null && __isset.InventoryID) {
     field.Name = "InventoryID";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(InventoryID);
     oprot.WriteFieldEnd();
       }
       if (ItemID != null && __isset.ItemID) {
     field.Name = "ItemID";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ItemID);
     oprot.WriteFieldEnd();
       }
       if (Messages != null && __isset.Messages) {
     field.Name = "Messages";
     field.Type = TType.List;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Map, Messages.Count));
       foreach (Dictionary<string, string> _iter79 in Messages)
       {
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, _iter79.Count));
       foreach (string _iter80 in _iter79.Keys)
       {
         oprot.WriteString(_iter80);
         oprot.WriteString(_iter79[_iter80]);
       }
       oprot.WriteMapEnd();
     }
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:tomochandv,项目名称:Test,代码行数:63,代码来源:EndItem.cs

示例8: Write


//.........这里部分代码省略.........
   }
   if (__isset.altitude) {
     field.Name = "altitude";
     field.Type = TType.Double;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     oprot.WriteDouble(Altitude);
     oprot.WriteFieldEnd();
   }
   if (Author != null && __isset.author) {
     field.Name = "author";
     field.Type = TType.String;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Author);
     oprot.WriteFieldEnd();
   }
   if (Source != null && __isset.source) {
     field.Name = "source";
     field.Type = TType.String;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Source);
     oprot.WriteFieldEnd();
   }
   if (SourceURL != null && __isset.sourceURL) {
     field.Name = "sourceURL";
     field.Type = TType.String;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceURL);
     oprot.WriteFieldEnd();
   }
   if (SourceApplication != null && __isset.sourceApplication) {
     field.Name = "sourceApplication";
     field.Type = TType.String;
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(SourceApplication);
     oprot.WriteFieldEnd();
   }
   if (__isset.shareDate) {
     field.Name = "shareDate";
     field.Type = TType.I64;
     field.ID = 17;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(ShareDate);
     oprot.WriteFieldEnd();
   }
   if (PlaceName != null && __isset.placeName) {
     field.Name = "placeName";
     field.Type = TType.String;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(PlaceName);
     oprot.WriteFieldEnd();
   }
   if (ContentClass != null && __isset.contentClass) {
     field.Name = "contentClass";
     field.Type = TType.String;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(ContentClass);
     oprot.WriteFieldEnd();
   }
   if (ApplicationData != null && __isset.applicationData) {
     field.Name = "applicationData";
     field.Type = TType.Struct;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     ApplicationData.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (LastEditedBy != null && __isset.lastEditedBy) {
     field.Name = "lastEditedBy";
     field.Type = TType.String;
     field.ID = 24;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(LastEditedBy);
     oprot.WriteFieldEnd();
   }
   if (Classifications != null && __isset.classifications) {
     field.Name = "classifications";
     field.Type = TType.Map;
     field.ID = 26;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Classifications.Count));
       foreach (string _iter21 in Classifications.Keys)
       {
         oprot.WriteString(_iter21);
         oprot.WriteString(Classifications[_iter21]);
         oprot.WriteMapEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:arisu1000,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:NoteAttributes.cs

示例9: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("Schema");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (FieldSchemas != null && __isset.fieldSchemas) {
     field.Name = "fieldSchemas";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, FieldSchemas.Count));
       foreach (FieldSchema _iter96 in FieldSchemas)
       {
     _iter96.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (Properties != null && __isset.properties) {
     field.Name = "properties";
     field.Type = TType.Map;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Properties.Count));
       foreach (string _iter97 in Properties.Keys)
       {
     oprot.WriteString(_iter97);
     oprot.WriteString(Properties[_iter97]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:39,代码来源:Schema.cs

示例10: Write

            public void Write(TProtocol oprot)
            {
                var struc = new TStruct("getColumnDescriptors_result");
                oprot.WriteStructBegin(struc);
                var field = new TField();

                if (this.__isset.success)
                {
                    if (this.Success != null)
                    {
                        field.Name = "Success";
                        field.Type = TType.Map;
                        field.ID = 0;
                        oprot.WriteFieldBegin(field);
                        {
                            oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, this.Success.Count));
                            foreach (var _iter21 in this.Success.Keys)
                            {
                                oprot.WriteBinary(_iter21);
                                this.Success[_iter21].Write(oprot);
                            }
                            oprot.WriteMapEnd();
                        }
                        oprot.WriteFieldEnd();
                    }
                }
                else if (this.__isset.io)
                {
                    if (this.Io != null)
                    {
                        field.Name = "Io";
                        field.Type = TType.Struct;
                        field.ID = 1;
                        oprot.WriteFieldBegin(field);
                        this.Io.Write(oprot);
                        oprot.WriteFieldEnd();
                    }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }
开发者ID:nordbergm,项目名称:HBaseNet,代码行数:41,代码来源:Hbase.cs

示例11: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SearchQuery");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Columns != null && __isset.Columns) {
     field.Name = "Columns";
     field.Type = TType.List;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, Columns.Count));
       foreach (string _iter25 in Columns)
       {
         oprot.WriteString(_iter25);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.Count) {
     field.Name = "Count";
     field.Type = TType.I32;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Count);
     oprot.WriteFieldEnd();
   }
   if (Highlights != null && __isset.Highlights) {
     field.Name = "Highlights";
     field.Type = TType.Struct;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     Highlights.Write(oprot);
     oprot.WriteFieldEnd();
   }
   field.Name = "IndexName";
   field.Type = TType.String;
   field.ID = 4;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(IndexName);
   oprot.WriteFieldEnd();
   if (OrderBy != null && __isset.OrderBy) {
     field.Name = "OrderBy";
     field.Type = TType.String;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(OrderBy);
     oprot.WriteFieldEnd();
   }
   if (__isset.Skip) {
     field.Name = "Skip";
     field.Type = TType.I32;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Skip);
     oprot.WriteFieldEnd();
   }
   field.Name = "QueryString";
   field.Type = TType.String;
   field.ID = 7;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(QueryString);
   oprot.WriteFieldEnd();
   if (MissingValueConfiguration != null && __isset.MissingValueConfiguration) {
     field.Name = "MissingValueConfiguration";
     field.Type = TType.Map;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I32, MissingValueConfiguration.Count));
       foreach (string _iter26 in MissingValueConfiguration.Keys)
       {
         oprot.WriteString(_iter26);
         oprot.WriteI32((int)MissingValueConfiguration[_iter26]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.GlobalMissingValue) {
     field.Name = "GlobalMissingValue";
     field.Type = TType.I32;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)GlobalMissingValue);
     oprot.WriteFieldEnd();
   }
   if (__isset.ReturnFlatResult) {
     field.Name = "ReturnFlatResult";
     field.Type = TType.Bool;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(ReturnFlatResult);
     oprot.WriteFieldEnd();
   }
   if (__isset.ReturnScore) {
     field.Name = "ReturnScore";
     field.Type = TType.Bool;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
//.........这里部分代码省略.........
开发者ID:NobodyLiveForever,项目名称:FlexSearch,代码行数:101,代码来源:SearchQuery.cs

示例12: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("Query");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (QueryId != null && __isset.queryId) {
     field.Name = "queryId";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(QueryId);
     oprot.WriteFieldEnd();
       }
       if (QueryType != null && __isset.queryType) {
     field.Name = "queryType";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(QueryType);
     oprot.WriteFieldEnd();
       }
       if (QueryAttributes != null && __isset.queryAttributes) {
     field.Name = "queryAttributes";
     field.Type = TType.Map;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, QueryAttributes.Count));
       foreach (string _iter61 in QueryAttributes.Keys)
       {
     oprot.WriteString(_iter61);
     oprot.WriteString(QueryAttributes[_iter61]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (QueryCounters != null && __isset.queryCounters) {
     field.Name = "queryCounters";
     field.Type = TType.Map;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.I64, QueryCounters.Count));
       foreach (string _iter62 in QueryCounters.Keys)
       {
     oprot.WriteString(_iter62);
     oprot.WriteI64(QueryCounters[_iter62]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (StageGraph != null && __isset.stageGraph) {
     field.Name = "stageGraph";
     field.Type = TType.Struct;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     StageGraph.Write(oprot);
     oprot.WriteFieldEnd();
       }
       if (StageList != null && __isset.stageList) {
     field.Name = "stageList";
     field.Type = TType.List;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, StageList.Count));
       foreach (Stage _iter63 in StageList)
       {
     _iter63.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (__isset.done) {
     field.Name = "done";
     field.Type = TType.Bool;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Done);
     oprot.WriteFieldEnd();
       }
       if (__isset.started) {
     field.Name = "started";
     field.Type = TType.Bool;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Started);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:95,代码来源:Query.cs

示例13: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCBuyBackItemSucc");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (ItemIndexeChanges != null && __isset.itemIndexeChanges) {
     field.Name = "itemIndexeChanges";
     field.Type = TType.Map;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.I16, TType.I16, ItemIndexeChanges.Count));
       foreach (short _iter17 in ItemIndexeChanges.Keys)
       {
         oprot.WriteI16(_iter17);
         oprot.WriteI16(ItemIndexeChanges[_iter17]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:wuxin0602,项目名称:Nothing,代码行数:23,代码来源:SCBuyBackItemSucc.cs

示例14: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Item");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "attributes";
   field.Type = TType.Map;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   {
     oprot.WriteMapBegin(new TMap(TType.String, TType.String, Attributes.Count));
     foreach (string _iter4 in Attributes.Keys)
     {
       oprot.WriteString(_iter4);
       oprot.WriteString(Attributes[_iter4]);
     }
     oprot.WriteMapEnd();
   }
   oprot.WriteFieldEnd();
   field.Name = "kibitz_generated_id";
   field.Type = TType.I64;
   field.ID = 2;
   oprot.WriteFieldBegin(field);
   oprot.WriteI64(Kibitz_generated_id);
   oprot.WriteFieldEnd();
   field.Name = "confidence";
   field.Type = TType.I32;
   field.ID = 3;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32(Confidence);
   oprot.WriteFieldEnd();
   field.Name = "predictedPreferences";
   field.Type = TType.Double;
   field.ID = 4;
   oprot.WriteFieldBegin(field);
   oprot.WriteDouble(PredictedPreferences);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:qqliu,项目名称:kibitz,代码行数:39,代码来源:Item.cs

示例15: Write

            public void Write(TProtocol oprot)
            {
                TStruct struc = new TStruct("get_type_all_result");
                oprot.WriteStructBegin(struc);
                TField field = new TField();

                if (this.__isset.success)
                {
                    if (Success != null)
                    {
                        field.Name = "Success";
                        field.Type = TType.Map;
                        field.ID = 0;
                        oprot.WriteFieldBegin(field);
                        {
                            oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, Success.Count));
                            foreach (string _iter110 in Success.Keys)
                            {
                                oprot.WriteString(_iter110);
                                Success[_iter110].Write(oprot);
                            }
                            oprot.WriteMapEnd();
                        }
                        oprot.WriteFieldEnd();
                    }
                }
                else if (this.__isset.o2)
                {
                    if (O2 != null)
                    {
                        field.Name = "O2";
                        field.Type = TType.Struct;
                        field.ID = 1;
                        oprot.WriteFieldBegin(field);
                        O2.Write(oprot);
                        oprot.WriteFieldEnd();
                    }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:41,代码来源:ThriftHiveMetastore.cs


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