public void prepare_cql_query_Process(int seqid, TProtocol iprot, TProtocol oprot) { prepare_cql_query_args args = new prepare_cql_query_args(); args.Read(iprot); iprot.ReadMessageEnd(); prepare_cql_query_result result = new prepare_cql_query_result(); try { result.Success = iface_.prepare_cql_query(args.Query, args.Compression); } catch (InvalidRequestException ire) { result.Ire = ire; } oprot.WriteMessageBegin(new TMessage("prepare_cql_query", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public CqlPreparedResult recv_prepare_cql_query() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } prepare_cql_query_result result = new prepare_cql_query_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ire) { throw result.Ire; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "prepare_cql_query failed: unknown result"); }