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


C# TProtocol.ReadMessageEnd方法代码示例

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


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

示例1: Process

 public bool Process(TProtocol iprot, TProtocol oprot)
 {
     try
     {
         TMessage msg = iprot.ReadMessageBegin();
         ProcessFunction fn;
         processMap_.TryGetValue(msg.Name, out fn);
         if (fn == null)
         {
             TProtocolUtil.Skip(iprot, TType.Struct);
             iprot.ReadMessageEnd();
             TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.UnknownMethod, "Invalid method name: '" + msg.Name + "'");
             oprot.WriteMessageBegin(new TMessage(msg.Name, TMessageType.Exception, msg.SeqID));
             x.Write(oprot);
             oprot.WriteMessageEnd();
             oprot.Transport.Flush();
             return true;
         }
         fn(msg.SeqID, iprot, oprot);
     }
     catch (IOException)
     {
         return false;
     }
     return true;
 }
开发者ID:tritao,项目名称:thrift,代码行数:26,代码来源:TProcessor.cs

示例2: get_delegation_token_with_signature_Process

 public void get_delegation_token_with_signature_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_delegation_token_with_signature_args args = new get_delegation_token_with_signature_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_delegation_token_with_signature_result result = new get_delegation_token_with_signature_result();
     try
     {
         result.Success = iface_.get_delegation_token_with_signature(args.Renewer_kerberos_principal_name, args.Token_signature);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_delegation_token_with_signature", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例3: insert_Process

 public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     insert_args args = new insert_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       iface_.insert(args.tablename, args.key, args.columnFamily_column, args.cellData, args.timestamp);
       return;
 }
开发者ID:jiansheng,项目名称:cassandra,代码行数:8,代码来源:Cassandra.cs

示例4: batch_insert_superColumn_Process

 public void batch_insert_superColumn_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     batch_insert_superColumn_args args = new batch_insert_superColumn_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       iface_.batch_insert_superColumn(args.batchMutationSuper);
       return;
 }
开发者ID:jiansheng,项目名称:cassandra,代码行数:8,代码来源:Cassandra.cs

示例5: truncate_Process

 public void truncate_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     truncate_args args = new truncate_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     truncate_result result = new truncate_result();
     try {
       iface_.truncate(args.Cfname);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     }
     oprot.WriteMessageBegin(new TMessage("truncate", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:18,代码来源:Cassandra.cs

示例6: set_keyspace_Process

 public void set_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     set_keyspace_args args = new set_keyspace_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     set_keyspace_result result = new set_keyspace_result();
     try {
       iface_.set_keyspace(args.Keyspace);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     }
     oprot.WriteMessageBegin(new TMessage("set_keyspace", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:16,代码来源:Cassandra.cs

示例7: multiget_slice_Process

 public void multiget_slice_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     multiget_slice_args args = new multiget_slice_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     multiget_slice_result result = new multiget_slice_result();
     try {
       result.Success = iface_.multiget_slice(args.Keys, args.Column_parent, args.Predicate, args.Consistency_level);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("multiget_slice", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:20,代码来源:Cassandra.cs

示例8: get_Process

 public void get_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_args args = new get_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_result result = new get_result();
     try {
       result.Success = iface_.get(args.Key, args.Column_path, args.Consistency_level);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (NotFoundException nfe) {
       result.Nfe = nfe;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("get", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:22,代码来源:Cassandra.cs

示例9: grant_privileges_Process

 public void grant_privileges_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     grant_privileges_args args = new grant_privileges_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     grant_privileges_result result = new grant_privileges_result();
     try
     {
         result.Success = iface_.grant_privileges(args.Privileges);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("grant_privileges", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例10: get_type_Process

 public void get_type_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_type_args args = new get_type_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_type_result result = new get_type_result();
     try
     {
         result.Success = iface_.get_type(args.Name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_type", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs

示例11: get_schema_Process

 public void get_schema_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_schema_args args = new get_schema_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_schema_result result = new get_schema_result();
     try
     {
         result.Success = iface_.get_schema(args.Db_name, args.Table_name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (UnknownTableException o2)
     {
         result.O2 = o2;
     }
     catch (UnknownDBException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("get_schema", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:27,代码来源:ThriftHiveMetastore.cs

示例12: get_privilege_set_Process

 public void get_privilege_set_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_privilege_set_args args = new get_privilege_set_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_privilege_set_result result = new get_privilege_set_result();
     try
     {
         result.Success = iface_.get_privilege_set(args.HiveObject, args.User_name, args.Group_names);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_privilege_set", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例13: get_partition_with_auth_Process

 public void get_partition_with_auth_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partition_with_auth_args args = new get_partition_with_auth_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partition_with_auth_result result = new get_partition_with_auth_result();
     try
     {
         result.Success = iface_.get_partition_with_auth(args.Db_name, args.Tbl_name, args.Part_vals, args.User_name, args.Group_names);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partition_with_auth", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs

示例14: get_partition_names_ps_Process

 public void get_partition_names_ps_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partition_names_ps_args args = new get_partition_names_ps_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partition_names_ps_result result = new get_partition_names_ps_result();
     try
     {
         result.Success = iface_.get_partition_names_ps(args.Db_name, args.Tbl_name, args.Part_vals, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_partition_names_ps", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:19,代码来源:ThriftHiveMetastore.cs

示例15: get_partitions_by_filter_Process

 public void get_partitions_by_filter_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partitions_by_filter_args args = new get_partitions_by_filter_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partitions_by_filter_result result = new get_partitions_by_filter_result();
     try
     {
         result.Success = iface_.get_partitions_by_filter(args.Db_name, args.Tbl_name, args.Filter, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
开发者ID:zbw911,项目名称:CS4Hadoop,代码行数:23,代码来源:ThriftHiveMetastore.cs


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