Ejemplo n.º 1
0
 public void multiget_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     multiget_args args = new multiget_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     multiget_result result = new multiget_result();
     try {
       result.Success = iface_.multiget(args.Keyspace, args.Keys, args.Column_path, 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("multiget", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public Dictionary<string, ColumnOrSuperColumn> recv_multiget()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     multiget_result result = new multiget_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.ire) {
       throw result.Ire;
     }
     if (result.__isset.ue) {
       throw result.Ue;
     }
     if (result.__isset.te) {
       throw result.Te;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "multiget failed: unknown result");
 }