@Override public Object clone() throws CloneNotSupportedException { ColumnPartition columnPartition = (ColumnPartition) super.clone(); if (columns != null) { columnPartition.columns = new ColumnDefinition[columns.length]; for (int i = 0; i < columns.length; i++) { columnPartition.columns[i] = (ColumnDefinition) columns[i].clone(); } } return columnPartition; } }
@Override public Object clone() throws CloneNotSupportedException { ColumnPartition columnPartition = (ColumnPartition) super.clone(); if (columns != null) { columnPartition.columns = new ColumnDefinition[columns.length]; for (int i = 0; i < columns.length; i++) { columnPartition.columns[i] = (ColumnDefinition) columns[i].clone(); } } return columnPartition; } }
@Override public Object clone() throws CloneNotSupportedException { AlterTable alter = (AlterTable) super.clone(); alter.tableName = tableName; alter.newTableName = newTableName; alter.columnName = columnName; alter.newColumnName = newColumnName; if (addNewColumn != null) { alter.addNewColumn = (ColumnDefinition) addNewColumn.clone(); } alter.alterTableOpType = alterTableOpType; alter.columns = columns; alter.values = values; alter.location = location; if (params != null) { alter.params = new HashMap<>(params); } alter.purge = purge; alter.ifNotExists = ifNotExists; alter.ifExists = ifExists; return alter; } }
@Override public Object clone() throws CloneNotSupportedException { AlterTable alter = (AlterTable) super.clone(); alter.tableName = tableName; alter.newTableName = newTableName; alter.columnName = columnName; alter.newColumnName = newColumnName; if (addNewColumn != null) { alter.addNewColumn = (ColumnDefinition) addNewColumn.clone(); } alter.alterTableOpType = alterTableOpType; alter.columns = columns; alter.values = values; alter.location = location; if (params != null) { alter.params = new HashMap<>(params); } alter.purge = purge; alter.ifNotExists = ifNotExists; alter.ifExists = ifExists; return alter; } }
@Override public Object clone() throws CloneNotSupportedException { CreateTable createTable = (CreateTable) super.clone(); createTable.external = external; createTable.tableName = tableName; if (tableElements != null) { createTable.tableElements = new ColumnDefinition[tableElements.length]; for (int i = 0; i < tableElements.length; i++) { createTable.tableElements[i] = (ColumnDefinition) tableElements[i].clone(); } } createTable.storageType = storageType; createTable.location = location; createTable.subquery = subquery; if (params != null) { createTable.params = new HashMap<>(params); } if (partition != null) { createTable.partition = (PartitionMethodDescExpr) partition.clone(); } createTable.ifNotExists = ifNotExists; return createTable; }
@Override public Object clone() throws CloneNotSupportedException { CreateTable createTable = (CreateTable) super.clone(); createTable.external = external; createTable.tableName = tableName; if (tableElements != null) { createTable.tableElements = new ColumnDefinition[tableElements.length]; for (int i = 0; i < tableElements.length; i++) { createTable.tableElements[i] = (ColumnDefinition) tableElements[i].clone(); } } createTable.storageType = storageType; createTable.location = location; createTable.subquery = subquery; if (params != null) { createTable.params = new HashMap<>(params); } if (partition != null) { createTable.partition = (PartitionMethodDescExpr) partition.clone(); } createTable.ifNotExists = ifNotExists; return createTable; }