public TableSchema deepCopy() { return new TableSchema(this); }
/** * Performs a deep copy on <i>other</i>. */ public TableInfo(TableInfo other) { if (other.isSetFact_table()) { this.fact_table = new TableSchema(other.fact_table); } if (other.isSetAggregate_table_list()) { List<TableSchema> __this__aggregate_table_list = new ArrayList<TableSchema>(other.aggregate_table_list.size()); for (TableSchema other_element : other.aggregate_table_list) { __this__aggregate_table_list.add(new TableSchema(other_element)); } this.aggregate_table_list = __this__aggregate_table_list; } if (other.isSetDataMapSchemas()) { List<DataMapSchema> __this__dataMapSchemas = new ArrayList<DataMapSchema>(other.dataMapSchemas.size()); for (DataMapSchema other_element : other.dataMapSchemas) { __this__dataMapSchemas.add(new DataMapSchema(other_element)); } this.dataMapSchemas = __this__dataMapSchemas; } }
case 5: // CHILD_TABLE_SCHEMA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.childTableSchema = new TableSchema(); struct.childTableSchema.read(iprot); struct.setChildTableSchemaIsSet(true);
case 1: // FACT_TABLE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.fact_table = new TableSchema(); struct.fact_table.read(iprot); struct.setFact_tableIsSet(true); for (int _i136 = 0; _i136 < _list134.size; ++_i136) _elem135 = new TableSchema(); _elem135.read(iprot); struct.aggregate_table_list.add(_elem135);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.fact_table = new TableSchema(); struct.fact_table.read(iprot); struct.setFact_tableIsSet(true); for (int _i146 = 0; _i146 < _list144.size; ++_i146) _elem145 = new TableSchema(); _elem145.read(iprot); struct.aggregate_table_list.add(_elem145);
/** * Performs a deep copy on <i>other</i>. */ public DataMapSchema(DataMapSchema other) { if (other.isSetDataMapName()) { this.dataMapName = other.dataMapName; } if (other.isSetClassName()) { this.className = other.className; } if (other.isSetProperties()) { Map<String,String> __this__properties = new HashMap<String,String>(other.properties); this.properties = __this__properties; } if (other.isSetChildTableIdentifier()) { this.childTableIdentifier = new RelationIdentifier(other.childTableIdentifier); } if (other.isSetChildTableSchema()) { this.childTableSchema = new TableSchema(other.childTableSchema); } }
struct.childTableSchema = new TableSchema(); struct.childTableSchema.read(iprot); struct.setChildTableSchemaIsSet(true);
@Override public org.apache.carbondata.format.TableSchema fromWrapperToExternalTableSchema( TableSchema wrapperTableSchema) { List<org.apache.carbondata.format.ColumnSchema> thriftColumnSchema = new ArrayList<org.apache.carbondata.format.ColumnSchema>(); for (ColumnSchema wrapperColumnSchema : wrapperTableSchema.getListOfColumns()) { thriftColumnSchema.add(fromWrapperToExternalColumnSchema(wrapperColumnSchema)); } org.apache.carbondata.format.SchemaEvolution schemaEvolution = fromWrapperToExternalSchemaEvolution(wrapperTableSchema.getSchemaEvolution()); org.apache.carbondata.format.TableSchema externalTableSchema = new org.apache.carbondata.format.TableSchema( wrapperTableSchema.getTableId(), thriftColumnSchema, schemaEvolution); externalTableSchema.setTableProperties(wrapperTableSchema.getTableProperties()); if (wrapperTableSchema.getBucketingInfo() != null) { externalTableSchema.setBucketingInfo( fromWrapperToExternalBucketingInfo(wrapperTableSchema.getBucketingInfo())); } if (wrapperTableSchema.getPartitionInfo() != null) { externalTableSchema.setPartitionInfo( fromWrapperToExternalPartitionInfo(wrapperTableSchema.getPartitionInfo())); } return externalTableSchema; }