Exemple #1
0
 public int recv_scannerOpenWithPrefix()
 {
     TMessage msg = this.iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(this.iprot_);
         this.iprot_.ReadMessageEnd();
         throw x;
     }
     var result = new scannerOpenWithPrefix_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,
                                     "scannerOpenWithPrefix failed: unknown result");
 }
Exemple #2
0
 public void scannerOpenWithPrefix_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     var args = new scannerOpenWithPrefix_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     var result = new scannerOpenWithPrefix_result();
     try
     {
         result.Success = this.iface_.scannerOpenWithPrefix(args.TableName, args.StartAndPrefix, args.Columns);
     }
     catch (IOError io)
     {
         result.Io = io;
     }
     oprot.WriteMessageBegin(new TMessage("scannerOpenWithPrefix", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }