Class Table

    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getColumnMode()
      Get 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
      Column[] getColumns()
      Get 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 null,表示取不到有效值。
      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 setColumnMode​(String ColumnMode)
      Set 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
      void setColumns​(Column[] Columns)
      Set 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 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.
    • Constructor Detail

      • Table

        public Table()
      • Table

        public 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.
    • Method Detail

      • getTableName

        public String getTableName()
        Get 表名 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        TableName 表名 注意:此字段可能返回 null,表示取不到有效值。
      • setTableName

        public void setTableName​(String TableName)
        Set 表名 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        TableName - 表名 注意:此字段可能返回 null,表示取不到有效值。
      • getNewTableName

        public String getNewTableName()
        Get 新表名 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        NewTableName 新表名 注意:此字段可能返回 null,表示取不到有效值。
      • setNewTableName

        public void setNewTableName​(String NewTableName)
        Set 新表名 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        NewTableName - 新表名 注意:此字段可能返回 null,表示取不到有效值。
      • getFilterCondition

        public String getFilterCondition()
        Get 过滤条件 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        FilterCondition 过滤条件 注意:此字段可能返回 null,表示取不到有效值。
      • setFilterCondition

        public void setFilterCondition​(String FilterCondition)
        Set 过滤条件 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        FilterCondition - 过滤条件 注意:此字段可能返回 null,表示取不到有效值。
      • getColumnMode

        public String getColumnMode()
        Get 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        ColumnMode 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
      • setColumnMode

        public void setColumnMode​(String ColumnMode)
        Set 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        ColumnMode - 是否同步表中所有列,All:当前表下的所有列,Partial(ModifySyncJobConfig接口里的对应字段ColumnMode暂不支持Partial):当前表下的部分列,通过填充Columns字段详细表信息 注意:此字段可能返回 null,表示取不到有效值。
      • getColumns

        public Column[] getColumns()
        Get 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        Columns 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 null,表示取不到有效值。
      • setColumns

        public void setColumns​(Column[] Columns)
        Set 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        Columns - 同步的的列信息,当ColumnMode为Partial时,必填 注意:此字段可能返回 null,表示取不到有效值。
      • getTmpTables

        public 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,表示取不到有效值。
        Returns:
        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,表示取不到有效值。
      • setTmpTables

        public 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,表示取不到有效值。
        Parameters:
        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,表示取不到有效值。
      • getTableEditMode

        public String getTableEditMode()
        Get 编辑表类型,rename(表映射),pt(同步附加表) 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        TableEditMode 编辑表类型,rename(表映射),pt(同步附加表) 注意:此字段可能返回 null,表示取不到有效值。
      • setTableEditMode

        public void setTableEditMode​(String TableEditMode)
        Set 编辑表类型,rename(表映射),pt(同步附加表) 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        TableEditMode - 编辑表类型,rename(表映射),pt(同步附加表) 注意:此字段可能返回 null,表示取不到有效值。