Apache.Hadoop.Hive.ThriftHiveMetastore.get_partition_names_ps_args.Read C# (CSharp) Méthode

Read() public méthode

public Read ( TProtocol iprot ) : void
iprot Thrift.Protocol.TProtocol
Résultat void
            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)
                            {
                                Db_name = iprot.ReadString();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;
                        case 2:
                            if (field.Type == TType.String)
                            {
                                Tbl_name = iprot.ReadString();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;
                        case 3:
                            if (field.Type == TType.List)
                            {
                                {
                                    Part_vals = new List<string>();
                                    TList _list183 = iprot.ReadListBegin();
                                    for (int _i184 = 0; _i184 < _list183.Count; ++_i184)
                                    {
                                        string _elem185 = null;
                                        _elem185 = iprot.ReadString();
                                        Part_vals.Add(_elem185);
                                    }
                                    iprot.ReadListEnd();
                                }
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;
                        case 4:
                            if (field.Type == TType.I16)
                            {
                                Max_parts = iprot.ReadI16();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;
                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
ThriftHiveMetastore.get_partition_names_ps_args