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 0:
                 if (field.Type == TType.List)
                 {
                     {
                         Success = new List<FieldSchema>();
                         TList _list115 = iprot.ReadListBegin();
                         for (int _i116 = 0; _i116 < _list115.Count; ++_i116)
                         {
                             FieldSchema _elem117 = new FieldSchema();
                             _elem117 = new FieldSchema();
                             _elem117.Read(iprot);
                             Success.Add(_elem117);
                         }
                         iprot.ReadListEnd();
                     }
                 }
                 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 UnknownTableException();
                     O2.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 3:
                 if (field.Type == TType.Struct)
                 {
                     O3 = new UnknownDBException();
                     O3.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 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)
                    {
                        TableName = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.String)
                    {
                        DbName = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.String)
                    {
                        Owner = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.I32)
                    {
                        CreateTime = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.I32)
                    {
                        LastAccessTime = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.I32)
                    {
                        Retention = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.Struct)
                    {
                        Sd = new StorageDescriptor();
                        Sd.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.List)
                    {
                        {
                            PartitionKeys = new List <FieldSchema>();
                            TList _list66 = iprot.ReadListBegin();
                            for (int _i67 = 0; _i67 < _list66.Count; ++_i67)
                            {
                                FieldSchema _elem68 = new FieldSchema();
                                _elem68 = new FieldSchema();
                                _elem68.Read(iprot);
                                PartitionKeys.Add(_elem68);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.Map)
                    {
                        {
                            Parameters = new Dictionary <string, string>();
                            TMap _map69 = iprot.ReadMapBegin();
                            for (int _i70 = 0; _i70 < _map69.Count; ++_i70)
                            {
                                string _key71;
                                string _val72;
                                _key71             = iprot.ReadString();
                                _val72             = iprot.ReadString();
                                Parameters[_key71] = _val72;
                            }
                            iprot.ReadMapEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.String)
                    {
                        ViewOriginalText = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 11:
                    if (field.Type == TType.String)
                    {
                        ViewExpandedText = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 12:
                    if (field.Type == TType.String)
                    {
                        TableType = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 13:
                    if (field.Type == TType.Struct)
                    {
                        Privileges = new PrincipalPrivilegeSet();
                        Privileges.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Example #3
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.List)
                    {
                        {
                            FieldSchemas = new List <FieldSchema>();
                            TList _list89 = iprot.ReadListBegin();
                            for (int _i90 = 0; _i90 < _list89.Count; ++_i90)
                            {
                                FieldSchema _elem91 = new FieldSchema();
                                _elem91 = new FieldSchema();
                                _elem91.Read(iprot);
                                FieldSchemas.Add(_elem91);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.Map)
                    {
                        {
                            Properties = new Dictionary <string, string>();
                            TMap _map92 = iprot.ReadMapBegin();
                            for (int _i93 = 0; _i93 < _map92.Count; ++_i93)
                            {
                                string _key94;
                                string _val95;
                                _key94             = iprot.ReadString();
                                _val95             = iprot.ReadString();
                                Properties[_key94] = _val95;
                            }
                            iprot.ReadMapEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Example #4
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.List) {
       {
         FieldSchemas = new List<FieldSchema>();
         TList _list89 = iprot.ReadListBegin();
         for( int _i90 = 0; _i90 < _list89.Count; ++_i90)
         {
           FieldSchema _elem91 = new FieldSchema();
           _elem91 = new FieldSchema();
           _elem91.Read(iprot);
           FieldSchemas.Add(_elem91);
         }
         iprot.ReadListEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.Map) {
       {
         Properties = new Dictionary<string, string>();
         TMap _map92 = iprot.ReadMapBegin();
         for( int _i93 = 0; _i93 < _map92.Count; ++_i93)
         {
           string _key94;
           string _val95;
           _key94 = iprot.ReadString();
           _val95 = iprot.ReadString();
           Properties[_key94] = _val95;
         }
         iprot.ReadMapEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
Example #5
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)
                 {
                     Name = iprot.ReadString();
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 2:
                 if (field.Type == TType.String)
                 {
                     Type1 = iprot.ReadString();
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 3:
                 if (field.Type == TType.String)
                 {
                     Type2 = iprot.ReadString();
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             case 4:
                 if (field.Type == TType.List)
                 {
                     {
                         Fields = new List<FieldSchema>();
                         TList _list0 = iprot.ReadListBegin();
                         for (int _i1 = 0; _i1 < _list0.Count; ++_i1)
                         {
                             FieldSchema _elem2 = new FieldSchema();
                             _elem2 = new FieldSchema();
                             _elem2.Read(iprot);
                             Fields.Add(_elem2);
                         }
                         iprot.ReadListEnd();
                     }
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
Example #6
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)
                    {
                        Name = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.String)
                    {
                        Type1 = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.String)
                    {
                        Type2 = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.List)
                    {
                        {
                            Fields = new List <FieldSchema>();
                            TList _list0 = iprot.ReadListBegin();
                            for (int _i1 = 0; _i1 < _list0.Count; ++_i1)
                            {
                                FieldSchema _elem2 = new FieldSchema();
                                _elem2 = new FieldSchema();
                                _elem2.Read(iprot);
                                Fields.Add(_elem2);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Example #7
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.List) {
       {
         Cols = new List<FieldSchema>();
         TList _list49 = iprot.ReadListBegin();
         for( int _i50 = 0; _i50 < _list49.Count; ++_i50)
         {
           FieldSchema _elem51 = new FieldSchema();
           _elem51 = new FieldSchema();
           _elem51.Read(iprot);
           Cols.Add(_elem51);
         }
         iprot.ReadListEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.String) {
       Location = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 3:
     if (field.Type == TType.String) {
       InputFormat = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 4:
     if (field.Type == TType.String) {
       OutputFormat = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 5:
     if (field.Type == TType.Bool) {
       Compressed = iprot.ReadBool();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 6:
     if (field.Type == TType.I32) {
       NumBuckets = iprot.ReadI32();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 7:
     if (field.Type == TType.Struct) {
       SerdeInfo = new SerDeInfo();
       SerdeInfo.Read(iprot);
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 8:
     if (field.Type == TType.List) {
       {
         BucketCols = new List<string>();
         TList _list52 = iprot.ReadListBegin();
         for( int _i53 = 0; _i53 < _list52.Count; ++_i53)
         {
           string _elem54 = null;
           _elem54 = iprot.ReadString();
           BucketCols.Add(_elem54);
         }
         iprot.ReadListEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 9:
     if (field.Type == TType.List) {
       {
         SortCols = new List<Order>();
         TList _list55 = iprot.ReadListBegin();
         for( int _i56 = 0; _i56 < _list55.Count; ++_i56)
         {
           Order _elem57 = new Order();
           _elem57 = new Order();
           _elem57.Read(iprot);
           SortCols.Add(_elem57);
         }
         iprot.ReadListEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 10:
     if (field.Type == TType.Map) {
       {
         Parameters = new Dictionary<string, string>();
         TMap _map58 = iprot.ReadMapBegin();
         for( int _i59 = 0; _i59 < _map58.Count; ++_i59)
         {
           string _key60;
           string _val61;
           _key60 = iprot.ReadString();
           _val61 = iprot.ReadString();
           Parameters[_key60] = _val61;
         }
         iprot.ReadMapEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }
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 1:
                    if (field.Type == TType.List)
                    {
                        {
                            Cols = new List <FieldSchema>();
                            TList _list49 = iprot.ReadListBegin();
                            for (int _i50 = 0; _i50 < _list49.Count; ++_i50)
                            {
                                FieldSchema _elem51 = new FieldSchema();
                                _elem51 = new FieldSchema();
                                _elem51.Read(iprot);
                                Cols.Add(_elem51);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.String)
                    {
                        Location = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.String)
                    {
                        InputFormat = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.String)
                    {
                        OutputFormat = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.Bool)
                    {
                        Compressed = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.I32)
                    {
                        NumBuckets = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.Struct)
                    {
                        SerdeInfo = new SerDeInfo();
                        SerdeInfo.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.List)
                    {
                        {
                            BucketCols = new List <string>();
                            TList _list52 = iprot.ReadListBegin();
                            for (int _i53 = 0; _i53 < _list52.Count; ++_i53)
                            {
                                string _elem54 = null;
                                _elem54 = iprot.ReadString();
                                BucketCols.Add(_elem54);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.List)
                    {
                        {
                            SortCols = new List <Order>();
                            TList _list55 = iprot.ReadListBegin();
                            for (int _i56 = 0; _i56 < _list55.Count; ++_i56)
                            {
                                Order _elem57 = new Order();
                                _elem57 = new Order();
                                _elem57.Read(iprot);
                                SortCols.Add(_elem57);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.Map)
                    {
                        {
                            Parameters = new Dictionary <string, string>();
                            TMap _map58 = iprot.ReadMapBegin();
                            for (int _i59 = 0; _i59 < _map58.Count; ++_i59)
                            {
                                string _key60;
                                string _val61;
                                _key60             = iprot.ReadString();
                                _val61             = iprot.ReadString();
                                Parameters[_key60] = _val61;
                            }
                            iprot.ReadMapEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Example #9
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) {
       TableName = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.String) {
       DbName = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 3:
     if (field.Type == TType.String) {
       Owner = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 4:
     if (field.Type == TType.I32) {
       CreateTime = iprot.ReadI32();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 5:
     if (field.Type == TType.I32) {
       LastAccessTime = iprot.ReadI32();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 6:
     if (field.Type == TType.I32) {
       Retention = iprot.ReadI32();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 7:
     if (field.Type == TType.Struct) {
       Sd = new StorageDescriptor();
       Sd.Read(iprot);
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 8:
     if (field.Type == TType.List) {
       {
         PartitionKeys = new List<FieldSchema>();
         TList _list66 = iprot.ReadListBegin();
         for( int _i67 = 0; _i67 < _list66.Count; ++_i67)
         {
           FieldSchema _elem68 = new FieldSchema();
           _elem68 = new FieldSchema();
           _elem68.Read(iprot);
           PartitionKeys.Add(_elem68);
         }
         iprot.ReadListEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 9:
     if (field.Type == TType.Map) {
       {
         Parameters = new Dictionary<string, string>();
         TMap _map69 = iprot.ReadMapBegin();
         for( int _i70 = 0; _i70 < _map69.Count; ++_i70)
         {
           string _key71;
           string _val72;
           _key71 = iprot.ReadString();
           _val72 = iprot.ReadString();
           Parameters[_key71] = _val72;
         }
         iprot.ReadMapEnd();
       }
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 10:
     if (field.Type == TType.String) {
       ViewOriginalText = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 11:
     if (field.Type == TType.String) {
       ViewExpandedText = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 12:
     if (field.Type == TType.String) {
       TableType = iprot.ReadString();
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 13:
     if (field.Type == TType.Struct) {
       Privileges = new PrincipalPrivilegeSet();
       Privileges.Read(iprot);
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }