hive源码Table的设计

本文将深入探讨Hive中的Table设计,通过源码分析,揭示Hive表的内部结构和工作原理,包括表的元数据、字段定义、分区策略等方面,帮助读者更好地理解和使用Hive进行大数据处理。
摘要由CSDN通过智能技术生成
public Table(Table other) {
        this.__isset_bitfield = 0;
        this.optionals = new Table._Fields[]{Table._Fields.PRIVILEGES, Table._Fields.TEMPORARY};
        this.__isset_bitfield = other.__isset_bitfield;
        if (other.isSetTableName()) {
            this.tableName = other.tableName;
        }

        if (other.isSetDbName()) {
            this.dbName = other.dbName;
        }

        if (other.isSetOwner()) {
            this.owner = other.owner;
        }

        this.createTime = other.createTime;
        this.lastAccessTime = other.lastAccessTime;
        this.retention = other.retention;
        if (other.isSetSd()) {
            this.sd = new StorageDescriptor(other.sd);
        }

        Iterator i$;
        if (other.isSetPartitionKeys()) {
            List<FieldSchema> __this__partitionKeys = new ArrayList();
            i$ = other.partitionKeys.iterator();

            while(i$.hasNext()) {
                FieldSchema other_element = (FieldSchema)i$.next();
                __this__partitionKeys.add(new FieldSchema(other_element));
            }

            this.partitionKeys = __this__partitionKeys;
        }

        if (other.isSetParameters()) {
            Map<String, String> __this__parameters = new HashMap();
            i$ = other.parameters.entrySet().iterator();

            while(i$.hasNext()) {
                Entry<String, String> other_element = (Entry)i$.next();
                String other_element_key = (String)other_element.getKey();
                String other_element_value = (String)other_element.getValue();
                __this__parameters.put(other_element_key, other_element_value);
            }

            this.parameters = __this__parameters;
        }

        if (other.isSetViewOriginalText()) {
            this.viewOriginalText = other.viewOriginalText;
        }

        if (other.isSetViewExpandedText()) {
            this.viewExpandedText = other.viewExpandedText;
        }

        if (other.isSetTableType()) {
            this.tableType = other.tableType;
        }

        if (other.isSetPrivileges()) {
            this.privileges = new PrincipalPrivilegeSet(other.privileges);
        }

        this.temporary = other.temporary;
    }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值