public void send_execute_cql_query(byte[] query, Compression compression)
 {
     oprot_.WriteMessageBegin(new TMessage("execute_cql_query", TMessageType.Call, seqid_));
     execute_cql_query_args args = new execute_cql_query_args();
     args.Query = query;
     args.Compression = compression;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
 public void execute_cql_query_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     execute_cql_query_args args = new execute_cql_query_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     execute_cql_query_result result = new execute_cql_query_result();
     try {
       result.Success = iface_.execute_cql_query(args.Query, args.Compression);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     } catch (SchemaDisagreementException sde) {
       result.Sde = sde;
     }
     oprot.WriteMessageBegin(new TMessage("execute_cql_query", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemplo n.º 3
0
 public void send_execute_cql_query(byte[] query, Compression compression)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("execute_cql_query", TMessageType.Call, seqid_));
   execute_cql_query_args args = new execute_cql_query_args();
   args.Query = query;
   args.Compression = compression;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }