Exemplo n.º 1
0
 public Partition recv_append_partition()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     append_partition_result result = new append_partition_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.o1)
     {
         throw result.O1;
     }
     if (result.__isset.o2)
     {
         throw result.O2;
     }
     if (result.__isset.o3)
     {
         throw result.O3;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "append_partition failed: unknown result");
 }
Exemplo n.º 2
0
 public void append_partition_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     append_partition_args args = new append_partition_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     append_partition_result result = new append_partition_result();
     try
     {
         result.Success = iface_.append_partition(args.Db_name, args.Tbl_name, args.Part_vals);
     }
     catch (InvalidObjectException o1)
     {
         result.O1 = o1;
     }
     catch (AlreadyExistsException o2)
     {
         result.O2 = o2;
     }
     catch (MetaException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("append_partition", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }