Inheritance: TBase
Example #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.Struct)
                 {
                     Tbl = new Table();
                     Tbl.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Example #2
0
 public void send_alter_table(string dbname, string tbl_name, Table new_tbl)
 {
     oprot_.WriteMessageBegin(new TMessage("alter_table", TMessageType.Call, seqid_));
     alter_table_args args = new alter_table_args();
     args.Dbname = dbname;
     args.Tbl_name = tbl_name;
     args.New_tbl = new_tbl;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Example #3
0
 public void send_create_table(Table tbl)
 {
     oprot_.WriteMessageBegin(new TMessage("create_table", TMessageType.Call, seqid_));
     create_table_args args = new create_table_args();
     args.Tbl = tbl;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Example #4
0
 public void send_add_index(Index new_index, Table index_table)
 {
     oprot_.WriteMessageBegin(new TMessage("add_index", TMessageType.Call, seqid_));
     add_index_args args = new add_index_args();
     args.New_index = new_index;
     args.Index_table = index_table;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
Example #5
0
 public void create_table(Table tbl)
 {
     send_create_table(tbl);
     recv_create_table();
 }
Example #6
0
 public void alter_table(string dbname, string tbl_name, Table new_tbl)
 {
     send_alter_table(dbname, tbl_name, new_tbl);
     recv_alter_table();
 }
Example #7
0
 public Index add_index(Index new_index, Table index_table)
 {
     send_add_index(new_index, index_table);
     return recv_add_index();
 }
Example #8
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 0:
                 if (field.Type == TType.Struct)
                 {
                     Success = new Table();
                     Success.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 1:
                 if (field.Type == TType.Struct)
                 {
                     O1 = new MetaException();
                     O1.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 2:
                 if (field.Type == TType.Struct)
                 {
                     O2 = new NoSuchObjectException();
                     O2.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }