コード例 #1
0
 public void get_indexed_slices_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     get_indexed_slices_args args = new get_indexed_slices_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     get_indexed_slices_result result = new get_indexed_slices_result();
     try {
       result.Success = iface_.get_indexed_slices(args.Column_parent, args.Index_clause, args.Column_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_indexed_slices", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
コード例 #2
0
 public void send_get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level)
 {
     oprot_.WriteMessageBegin(new TMessage("get_indexed_slices", TMessageType.Call, seqid_));
     get_indexed_slices_args args = new get_indexed_slices_args();
     args.Column_parent = column_parent;
     args.Index_clause = index_clause;
     args.Column_predicate = column_predicate;
     args.Consistency_level = consistency_level;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }