public void send_batch_insert(batch_mutation_t batchMutation) { oprot_.WriteMessageBegin(new TMessage("batch_insert", TMessageType.Call, seqid_)); batch_insert_args args = new batch_insert_args(); args.batchMutation = batchMutation; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void batch_insert_Process(int seqid, TProtocol iprot, TProtocol oprot) { batch_insert_args args = new batch_insert_args(); args.Read(iprot); iprot.ReadMessageEnd(); batch_insert_result result = new batch_insert_result(); try { iface_.batch_insert(args.Keyspace, args.Key, args.Cfmap, 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("batch_insert", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void batch_insert_Process(int seqid, TProtocol iprot, TProtocol oprot) { batch_insert_args args = new batch_insert_args(); args.Read(iprot); iprot.ReadMessageEnd(); iface_.batch_insert(args.batchMutation); return; }
public void send_batch_insert(string keyspace, string key, Dictionary<string, List<ColumnOrSuperColumn>> cfmap, ConsistencyLevel consistency_level) { oprot_.WriteMessageBegin(new TMessage("batch_insert", TMessageType.Call, seqid_)); batch_insert_args args = new batch_insert_args(); args.Keyspace = keyspace; args.Key = key; args.Cfmap = cfmap; args.Consistency_level = consistency_level; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }