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(); }
public int openScanner(byte[] table, TScan scan) { send_openScanner(table, scan); return recv_openScanner(); }
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(); }