public class Table extends AbstractModel
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 |
getFilterCondition()
Get 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getNewTableName()
Get 新表名
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getTableEditMode()
Get 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getTableName()
Get 表名
注意:此字段可能返回 null,表示取不到有效值。
|
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产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFilterCondition(String FilterCondition)
Set 过滤条件
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setNewTableName(String NewTableName)
Set 新表名
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setTableEditMode(String TableEditMode)
Set 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setTableName(String TableName)
Set 表名
注意:此字段可能返回 null,表示取不到有效值。
|
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产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Table()
public Table(Table source)
public String getTableName()
public void setTableName(String TableName)
TableName
- 表名
注意:此字段可能返回 null,表示取不到有效值。public String getNewTableName()
public void setNewTableName(String NewTableName)
NewTableName
- 新表名
注意:此字段可能返回 null,表示取不到有效值。public String getFilterCondition()
public void setFilterCondition(String FilterCondition)
FilterCondition
- 过滤条件
注意:此字段可能返回 null,表示取不到有效值。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产生的临时表可同时配置。
注意:此字段可能返回 null,表示取不到有效值。public String getTableEditMode()
public void setTableEditMode(String TableEditMode)
TableEditMode
- 编辑表类型,rename(表映射),pt(同步附加表)
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.