public void describe_splits_ex_Process(int seqid, TProtocol iprot, TProtocol oprot) { describe_splits_ex_args args = new describe_splits_ex_args(); args.Read(iprot); iprot.ReadMessageEnd(); describe_splits_ex_result result = new describe_splits_ex_result(); try { result.Success = iface_.describe_splits_ex(args.CfName, args.Start_token, args.End_token, args.Keys_per_split); } catch (InvalidRequestException ire) { result.Ire = ire; } oprot.WriteMessageBegin(new TMessage("describe_splits_ex", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<CfSplit> recv_describe_splits_ex() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } describe_splits_ex_result result = new describe_splits_ex_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ire) { throw result.Ire; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "describe_splits_ex failed: unknown result"); }