Example #1
0
 public void send_get_partition_with_auth(string db_name, string tbl_name, List<string> part_vals, string user_name, List<string> group_names)
 {
     oprot_.WriteMessageBegin(new TMessage("get_partition_with_auth", TMessageType.Call, seqid_));
     get_partition_with_auth_args args = new get_partition_with_auth_args();
     args.Db_name = db_name;
     args.Tbl_name = tbl_name;
     args.Part_vals = part_vals;
     args.User_name = user_name;
     args.Group_names = group_names;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Example #2
0
 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();
 }