Пример #1
0
 public void send_get_partitions_ps(string db_name, string tbl_name, List<string> part_vals, short max_parts)
 {
     oprot_.WriteMessageBegin(new TMessage("get_partitions_ps", TMessageType.Call, seqid_));
     get_partitions_ps_args args = new get_partitions_ps_args();
     args.Db_name = db_name;
     args.Tbl_name = tbl_name;
     args.Part_vals = part_vals;
     args.Max_parts = max_parts;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Пример #2
0
 public void get_partitions_ps_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partitions_ps_args args = new get_partitions_ps_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partitions_ps_result result = new get_partitions_ps_result();
     try
     {
         result.Success = iface_.get_partitions_ps(args.Db_name, args.Tbl_name, args.Part_vals, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("get_partitions_ps", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }