예제 #1
0
 public void send_get_schema(string db_name, string table_name)
 {
     oprot_.WriteMessageBegin(new TMessage("get_schema", TMessageType.Call, seqid_));
     get_schema_args args = new get_schema_args();
     args.Db_name = db_name;
     args.Table_name = table_name;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
예제 #2
0
 public void get_schema_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_schema_args args = new get_schema_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_schema_result result = new get_schema_result();
     try
     {
         result.Success = iface_.get_schema(args.Db_name, args.Table_name);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (UnknownTableException o2)
     {
         result.O2 = o2;
     }
     catch (UnknownDBException o3)
     {
         result.O3 = o3;
     }
     oprot.WriteMessageBegin(new TMessage("get_schema", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }