Exemplo n.º 1
0
 public void send_get_indexes(string db_name, string tbl_name, short max_indexes)
 {
     oprot_.WriteMessageBegin(new TMessage("get_indexes", TMessageType.Call, seqid_));
     get_indexes_args args = new get_indexes_args();
     args.Db_name = db_name;
     args.Tbl_name = tbl_name;
     args.Max_indexes = max_indexes;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Exemplo n.º 2
0
 public void get_indexes_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_indexes_args args = new get_indexes_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_indexes_result result = new get_indexes_result();
     try
     {
         result.Success = iface_.get_indexes(args.Db_name, args.Tbl_name, args.Max_indexes);
     }
     catch (NoSuchObjectException o1)
     {
         result.O1 = o1;
     }
     catch (MetaException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_indexes", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }