Пример #1
0
 public List<string> recv_get_partition_names()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     get_partition_names_result result = new get_partition_names_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.o2)
     {
         throw result.O2;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get_partition_names failed: unknown result");
 }
Пример #2
0
 public void get_partition_names_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partition_names_args args = new get_partition_names_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partition_names_result result = new get_partition_names_result();
     try
     {
         result.Success = iface_.get_partition_names(args.Db_name, args.Tbl_name, args.Max_parts);
     }
     catch (MetaException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partition_names", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }