Inheritance: TBase
Esempio n. 1
0
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.String) {
     Table = iprot.ReadBinary();
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     Scan = new TScan();
     Scan.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Esempio n. 2
0
 public int openScanner(byte[] table, TScan scan)
 {
     send_openScanner(table, scan);
     return recv_openScanner();
 }
Esempio n. 3
0
 public void send_openScanner(byte[] table, TScan scan)
 {
     oprot_.WriteMessageBegin(new TMessage("openScanner", TMessageType.Call, seqid_));
     openScanner_args args = new openScanner_args();
     args.Table = table;
     args.Scan = scan;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }