public class TopicRule extends AbstractModel
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 Database name matching rule.
|
String |
getDbName()
Get Database name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.
|
String |
getPartitionType()
Get Topic partitioning policy.
|
String |
getTableMatchMode()
Get Table name matching rule.
|
String |
getTableName()
Get Table name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.
|
String |
getTopicName()
Get Topic name
|
void |
setDbMatchMode(String DbMatchMode)
Set Database name matching rule.
|
void |
setDbName(String DbName)
Set Database name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.
|
void |
setPartitionType(String PartitionType)
Set Topic partitioning policy.
|
void |
setTableMatchMode(String TableMatchMode)
Set Table name matching rule.
|
void |
setTableName(String TableName)
Set Table name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.
|
void |
setTopicName(String TopicName)
Set Topic name
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public TopicRule()
public TopicRule(TopicRule source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic namepublic String getPartitionType()
public void setPartitionType(String PartitionType)
PartitionType
- Topic partitioning policy. If the topic sync policy is delivering data to multiple custom topics (`TopicType` = `Multi`), the value of this parameter is `Random` (deliver to a random partition). If the topic sync policy is delivering all data to a single topic (`TopicType` = `Single`), this parameter has three valid values: `AllInPartitionZero` (deliver all data to partition0), `PartitionByTable` (partition by table name), `PartitionByTableAndKey` (partition by table name and primary key).public String getDbMatchMode()
public void setDbMatchMode(String DbMatchMode)
DbMatchMode
- Database name matching rule. This parameter takes effect only when `TopicType` is `Multi`. Valid values: `Regular` (match by regex), `Default` (default rule for the remaining databases that cannot be matched by regex). The default rule must be included in the array of matching rules.public String getDbName()
public void setDbName(String DbName)
DbName
- Database name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.public String getTableMatchMode()
public void setTableMatchMode(String TableMatchMode)
TableMatchMode
- Table name matching rule. This parameter takes effect only when `TopicType` is `Multi`. Valid values: `Regular` (match by regex), `Default` (default rule for the remaining databases that cannot be matched by regex). The default rule must be included in the array of matching rules.public String getTableName()
public void setTableName(String TableName)
TableName
- Table name, which can only be matched by regex when `TopicType` is `Multi` and `DbMatchMode` is `Regular`.Copyright © 2023. All rights reserved.