public class Table extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Table() | 
| Table(Table 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 | getColumnMode()Get 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 | 
| Column[] | getColumns()Get 同步的列信息,当ColumnMode为Partial时,必填 | 
| String | getFilterCondition()Get 过滤条件 | 
| String | getNewTableName()Get 新表名 | 
| String | getTableEditMode()Get 编辑表类型,rename(表映射),pt(同步附加表) | 
| String | getTableName()Get 表名 | 
| String[] | getTmpTables()Get 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。 | 
| void | setColumnMode(String ColumnMode)Set 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 | 
| void | setColumns(Column[] Columns)Set 同步的列信息,当ColumnMode为Partial时,必填 | 
| void | setFilterCondition(String FilterCondition)Set 过滤条件 | 
| void | setNewTableName(String NewTableName)Set 新表名 | 
| void | setTableEditMode(String TableEditMode)Set 编辑表类型,rename(表映射),pt(同步附加表) | 
| void | setTableName(String TableName)Set 表名 | 
| void | setTmpTables(String[] TmpTables)Set 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Table()
public Table(Table source)
public String getTableName()
public void setTableName(String TableName)
TableName - 表名public String getNewTableName()
public void setNewTableName(String NewTableName)
NewTableName - 新表名public String getFilterCondition()
public void setFilterCondition(String FilterCondition)
FilterCondition - 过滤条件public String getColumnMode()
public void setColumnMode(String ColumnMode)
ColumnMode - 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息public Column[] getColumns()
public void setColumns(Column[] Columns)
Columns - 同步的列信息,当ColumnMode为Partial时,必填public String[] getTmpTables()
public void setTmpTables(String[] TmpTables)
TmpTables - 同步临时表,注意此配置与NewTableName互斥,只能使用其中一种。当配置的同步对象为表级别且TableEditMode为pt时此项有意义,针对pt-osc等工具在同步过程中产生的临时表进行同步,需要提前将可能的临时表配置在这里,否则不会同步任何临时表。示例,如要对t1进行pt-osc操作,此项配置应该为["\_t1\_new","\_t1\_old"];如要对t1进行gh-ost操作,此项配置应该为["\_t1\_ghc","\_t1\_gho","\_t1\_del"],pt-osc与gh-ost产生的临时表可同时配置。public String getTableEditMode()
public void setTableEditMode(String TableEditMode)
TableEditMode - 编辑表类型,rename(表映射),pt(同步附加表)Copyright © 2025. All rights reserved.