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(); }
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(); }