public class TopicRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
TopicRule() |
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getDbMatchMode()
Get 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
|
String |
getDbName()
Get 库名,仅“自定义topic”时,DbMatchMode=Regular生效
|
String |
getPartitionType()
Get topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
|
String |
getTableMatchMode()
Get 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
|
String |
getTableName()
Get 表名,仅“自定义topic”时,TableMatchMode=Regular生效
|
String |
getTopicName()
Get topic名
|
void |
setDbMatchMode(String DbMatchMode)
Set 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
|
void |
setDbName(String DbName)
Set 库名,仅“自定义topic”时,DbMatchMode=Regular生效
|
void |
setPartitionType(String PartitionType)
Set topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
|
void |
setTableMatchMode(String TableMatchMode)
Set 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
|
void |
setTableName(String TableName)
Set 表名,仅“自定义topic”时,TableMatchMode=Regular生效
|
void |
setTopicName(String TopicName)
Set topic名
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public TopicRule()
public TopicRule(TopicRule source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- topic名public String getPartitionType()
public void setPartitionType(String PartitionType)
PartitionType
- topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)public String getDbMatchMode()
public void setDbMatchMode(String DbMatchMode)
DbMatchMode
- 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’public String getDbName()
public void setDbName(String DbName)
DbName
- 库名,仅“自定义topic”时,DbMatchMode=Regular生效public String getTableMatchMode()
public void setTableMatchMode(String TableMatchMode)
TableMatchMode
- 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’public String getTableName()
public void setTableName(String TableName)
TableName
- 表名,仅“自定义topic”时,TableMatchMode=Regular生效Copyright © 2023. All rights reserved.