Exemple #1
0
 public void get_slice_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_slice_args args = new get_slice_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       get_slice_result result = new get_slice_result();
       result.success = iface_.get_slice(args.tablename, args.key, args.columnFamily_column, args.start, args.count);
       result.__isset.success = true;
       oprot.WriteMessageBegin(new TMessage("get_slice", TMessageType.Reply, seqid));
       result.Write(oprot);
       oprot.WriteMessageEnd();
       oprot.Transport.Flush();
 }
Exemple #2
0
 public List<column_t> recv_get_slice()
 {
     TMessage msg = iprot_.ReadMessageBegin();
       if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
       }
       get_slice_result result = new get_slice_result();
       result.Read(iprot_);
       iprot_.ReadMessageEnd();
       if (result.__isset.success) {
     return result.success;
       }
       throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get_slice failed: unknown result");
 }
 public void get_slice_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_slice_args args = new get_slice_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_slice_result result = new get_slice_result();
     try {
       result.Success = iface_.get_slice(args.Key, args.Column_parent, args.Predicate, args.Consistency_level);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("get_slice", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }