public class TableItem extends AbstractModel
Constructor and Description |
---|
TableItem() |
TableItem(TableItem source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewTableName()
Get New name of the migrated table.
|
String |
getTableEditMode()
Get Table editing type.
|
String |
getTableName()
Get Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.
|
String[] |
getTmpTables()
Get The temp tables to be migrated.
|
void |
setNewTableName(String NewTableName)
Set New name of the migrated table.
|
void |
setTableEditMode(String TableEditMode)
Set Table editing type.
|
void |
setTableName(String TableName)
Set Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTmpTables(String[] TmpTables)
Set The temp tables to be migrated.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public TableItem()
public TableItem(TableItem source)
public String getTableName()
public void setTableName(String TableName)
TableName
- Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.public String getNewTableName()
public void setNewTableName(String NewTableName)
NewTableName
- New name of the migrated table. This parameter is required when `TableEditMode` is `rename`. It is mutually exclusive with `TmpTables`.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getTmpTables()
public void setTmpTables(String[] TmpTables)
TmpTables
- The temp tables to be migrated. This parameter is mutually exclusive with `NewTableName`. It is valid only when the configured migration objects are table-level ones and `TableEditMode` is `pt`. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named "t1", configure this parameter as ["_t1_new","_t1_old"]; to perform the gh-ost operation on t1, configure it as ["_t1_ghc","_t1_gho","_t1_del"]. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
Note: This field may return null, indicating that no valid values can be obtained.public String getTableEditMode()
public void setTableEditMode(String TableEditMode)
TableEditMode
- Table editing type. Valid values: `rename` (table mapping); `pt` (additional table sync).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.