Ejemplo n.º 1
0
 public void send_append_partition_by_name(string db_name, string tbl_name, string part_name)
 {
     oprot_.WriteMessageBegin(new TMessage("append_partition_by_name", TMessageType.Call, seqid_));
     append_partition_by_name_args args = new append_partition_by_name_args();
     args.Db_name = db_name;
     args.Tbl_name = tbl_name;
     args.Part_name = part_name;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void append_partition_by_name_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     append_partition_by_name_args args = new append_partition_by_name_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     append_partition_by_name_result result = new append_partition_by_name_result();
     try
     {
         result.Success = iface_.append_partition_by_name(args.Db_name, args.Tbl_name, args.Part_name);
     }
     catch (InvalidObjectException o1)
     {
         result.O1 = o1;
     }
     catch (AlreadyExistsException o2)
     {
         result.O2 = o2;
     }
     catch (MetaException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("append_partition_by_name", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }