Ejemplo n.º 1
0
 public void send_get_partitions_by_filter(string db_name, string tbl_name, string filter, short max_parts)
 {
     oprot_.WriteMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.Call, seqid_));
     get_partitions_by_filter_args args = new get_partitions_by_filter_args();
     args.Db_name = db_name;
     args.Tbl_name = tbl_name;
     args.Filter = filter;
     args.Max_parts = max_parts;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void get_partitions_by_filter_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_partitions_by_filter_args args = new get_partitions_by_filter_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_partitions_by_filter_result result = new get_partitions_by_filter_result();
     try
     {
         result.Success = iface_.get_partitions_by_filter(args.Db_name, args.Tbl_name, args.Filter, args.Max_parts);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     catch (NoSuchObjectException o2)
     {
         result.O2 = o2;
     }
     oprot.WriteMessageBegin(new TMessage("get_partitions_by_filter", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }