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 _list95 = iprot.ReadListBegin(); for (int _i96 = 0; _i96 < _list95.Count; ++_i96) { FieldSchema _elem97 = new FieldSchema(); _elem97 = new FieldSchema(); _elem97.Read(iprot); PartitionKeys.Add(_elem97); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Map) { { Parameters = new Dictionary <string, string>(); TMap _map98 = iprot.ReadMapBegin(); for (int _i99 = 0; _i99 < _map98.Count; ++_i99) { string _key100; string _val101; _key100 = iprot.ReadString(); _val101 = iprot.ReadString(); Parameters[_key100] = _val101; } 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; case 14: if (field.Type == TType.Bool) { Temporary = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
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(); }
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 _list130 = iprot.ReadListBegin(); for (int _i131 = 0; _i131 < _list130.Count; ++_i131) { FieldSchema _elem132 = new FieldSchema(); _elem132 = new FieldSchema(); _elem132.Read(iprot); FieldSchemas.Add(_elem132); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Map) { { Properties = new Dictionary <string, string>(); TMap _map133 = iprot.ReadMapBegin(); for (int _i134 = 0; _i134 < _map133.Count; ++_i134) { string _key135; string _val136; _key135 = iprot.ReadString(); _val136 = iprot.ReadString(); Properties[_key135] = _val136; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
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 _list78 = iprot.ReadListBegin(); for (int _i79 = 0; _i79 < _list78.Count; ++_i79) { FieldSchema _elem80 = new FieldSchema(); _elem80 = new FieldSchema(); _elem80.Read(iprot); Cols.Add(_elem80); } 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 _list81 = iprot.ReadListBegin(); for (int _i82 = 0; _i82 < _list81.Count; ++_i82) { string _elem83 = null; _elem83 = iprot.ReadString(); BucketCols.Add(_elem83); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.List) { { SortCols = new List <Order>(); TList _list84 = iprot.ReadListBegin(); for (int _i85 = 0; _i85 < _list84.Count; ++_i85) { Order _elem86 = new Order(); _elem86 = new Order(); _elem86.Read(iprot); SortCols.Add(_elem86); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Map) { { Parameters = new Dictionary <string, string>(); TMap _map87 = iprot.ReadMapBegin(); for (int _i88 = 0; _i88 < _map87.Count; ++_i88) { string _key89; string _val90; _key89 = iprot.ReadString(); _val90 = iprot.ReadString(); Parameters[_key89] = _val90; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Struct) { SkewedInfo = new SkewedInfo(); SkewedInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Bool) { StoredAsSubDirectories = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }