Ejemplo n.º 1
0
 public void getVerTs_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     var args = new getVerTs_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     var result = new getVerTs_result();
     try
     {
         result.Success = this.iface_.getVerTs(args.TableName, args.Row, args.Column, args.Timestamp,
                                               args.NumVersions);
     }
     catch (IOError io)
     {
         result.Io = io;
     }
     oprot.WriteMessageBegin(new TMessage("getVerTs", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public List<TCell> recv_getVerTs()
 {
     TMessage msg = this.iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(this.iprot_);
         this.iprot_.ReadMessageEnd();
         throw x;
     }
     var result = new getVerTs_result();
     result.Read(this.iprot_);
     this.iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.io)
     {
         throw result.Io;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult,
                                     "getVerTs failed: unknown result");
 }
Ejemplo n.º 3
0
 public void getVerTs_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     getVerTs_args args = new getVerTs_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     getVerTs_result result = new getVerTs_result();
     try {
       result.success = iface_.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions);
       result.__isset.success = true;
     } catch (IOError io) {
       result.io = io;
       result.__isset.io = true;
     } catch (NotFound nf) {
       result.nf = nf;
       result.__isset.nf = true;
     }
     oprot.WriteMessageBegin(new TMessage("getVerTs", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }