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[] |
getColumns()
Get 按列分区时需要选择配置列名,可以选择多列
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getDbMatchMode()
Get 库名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中最后一项必须为‘Default’
|
String |
getDbName()
Get 库名,DbMatchMode=Regular时生效
|
String |
getPartitionType()
Get topic分区策略,自定义topic时支持:Random(随机投递),集中投递到单Topic时支持:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)、PartitionByCols(按列分区)
|
String |
getTableMatchMode()
Get 表名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中最后一项必须为‘Default’
|
String |
getTableName()
Get 表名,仅TableMatchMode=Regular时生效
|
String |
getTopicName()
Get topic名。单topic时,所有的TopicName必须相同
|
void |
setColumns(String[] Columns)
Set 按列分区时需要选择配置列名,可以选择多列
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDbMatchMode(String DbMatchMode)
Set 库名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中最后一项必须为‘Default’
|
void |
setDbName(String DbName)
Set 库名,DbMatchMode=Regular时生效
|
void |
setPartitionType(String PartitionType)
Set topic分区策略,自定义topic时支持:Random(随机投递),集中投递到单Topic时支持:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)、PartitionByCols(按列分区)
|
void |
setTableMatchMode(String TableMatchMode)
Set 表名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中最后一项必须为‘Default’
|
void |
setTableName(String TableName)
Set 表名,仅TableMatchMode=Regular时生效
|
void |
setTopicName(String TopicName)
Set topic名。单topic时,所有的TopicName必须相同
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public TopicRule()
public TopicRule(TopicRule source)
public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- topic名。单topic时,所有的TopicName必须相同public String getPartitionType()
public void setPartitionType(String PartitionType)
PartitionType
- topic分区策略,自定义topic时支持:Random(随机投递),集中投递到单Topic时支持:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)、PartitionByCols(按列分区)public String getDbMatchMode()
public void setDbMatchMode(String DbMatchMode)
DbMatchMode
- 库名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中最后一项必须为‘Default’public String getDbName()
public void setDbName(String DbName)
DbName
- 库名,DbMatchMode=Regular时生效public String getTableMatchMode()
public void setTableMatchMode(String TableMatchMode)
TableMatchMode
- 表名匹配规则,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中最后一项必须为‘Default’public String getTableName()
public void setTableName(String TableName)
TableName
- 表名,仅TableMatchMode=Regular时生效public String[] getColumns()
public void setColumns(String[] Columns)
Columns
- 按列分区时需要选择配置列名,可以选择多列
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.