Class TopicRule

    • Constructor Detail

      • TopicRule

        public TopicRule()
      • TopicRule

        public TopicRule​(TopicRule 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

      • getTopicName

        public String getTopicName()
        Get topic名
        Returns:
        TopicName topic名
      • setTopicName

        public void setTopicName​(String TopicName)
        Set topic名
        Parameters:
        TopicName - topic名
      • getPartitionType

        public String getPartitionType()
        Get topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
        Returns:
        PartitionType topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
      • setPartitionType

        public void setPartitionType​(String PartitionType)
        Set topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
        Parameters:
        PartitionType - topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
      • getDbMatchMode

        public String getDbMatchMode()
        Get 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
        Returns:
        DbMatchMode 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
      • setDbMatchMode

        public void setDbMatchMode​(String DbMatchMode)
        Set 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
        Parameters:
        DbMatchMode - 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
      • getDbName

        public String getDbName()
        Get 库名,仅“自定义topic”时,DbMatchMode=Regular生效
        Returns:
        DbName 库名,仅“自定义topic”时,DbMatchMode=Regular生效
      • setDbName

        public void setDbName​(String DbName)
        Set 库名,仅“自定义topic”时,DbMatchMode=Regular生效
        Parameters:
        DbName - 库名,仅“自定义topic”时,DbMatchMode=Regular生效
      • getTableMatchMode

        public String getTableMatchMode()
        Get 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
        Returns:
        TableMatchMode 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
      • setTableMatchMode

        public void setTableMatchMode​(String TableMatchMode)
        Set 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
        Parameters:
        TableMatchMode - 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
      • getTableName

        public String getTableName()
        Get 表名,仅“自定义topic”时,TableMatchMode=Regular生效
        Returns:
        TableName 表名,仅“自定义topic”时,TableMatchMode=Regular生效
      • setTableName

        public void setTableName​(String TableName)
        Set 表名,仅“自定义topic”时,TableMatchMode=Regular生效
        Parameters:
        TableName - 表名,仅“自定义topic”时,TableMatchMode=Regular生效