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;
}
hive源码Table的设计
最新推荐文章于 2024-09-02 23:42:39 发布
本文将深入探讨Hive中的Table设计,通过源码分析,揭示Hive表的内部结构和工作原理,包括表的元数据、字段定义、分区策略等方面,帮助读者更好地理解和使用Hive进行大数据处理。
摘要由CSDN通过智能技术生成