Class: TencentCloud::Dts::V20211206::DistributeRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::DistributeRule
- Defined in:
- lib/v20211206/models.rb
Overview
订阅任务的kafka分区规则。符合库名和表名正则表达式的数据将按照RuleType计算该条数据将被投递的kafka分区。如果配置了多个规则,将按照配置的顺序,第一条命中的规则生效。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruletype = nil, dbpattern = nil, tablepattern = nil, columns = nil) ⇒ DistributeRule
constructor
A new instance of DistributeRule.
Constructor Details
#initialize(ruletype = nil, dbpattern = nil, tablepattern = nil, columns = nil) ⇒ DistributeRule
Returns a new instance of DistributeRule.
3964 3965 3966 3967 3968 3969 |
# File 'lib/v20211206/models.rb', line 3964 def initialize(ruletype=nil, dbpattern=nil, tablepattern=nil, columns=nil) @RuleType = ruletype @DbPattern = dbpattern @TablePattern = tablepattern @Columns = columns end |
Instance Attribute Details
#Columns ⇒ Object
3962 3963 3964 |
# File 'lib/v20211206/models.rb', line 3962 def Columns @Columns end |
#DbPattern ⇒ Object
3962 3963 3964 |
# File 'lib/v20211206/models.rb', line 3962 def DbPattern @DbPattern end |
#RuleType ⇒ Object
3962 3963 3964 |
# File 'lib/v20211206/models.rb', line 3962 def RuleType @RuleType end |
#TablePattern ⇒ Object
3962 3963 3964 |
# File 'lib/v20211206/models.rb', line 3962 def TablePattern @TablePattern end |
Instance Method Details
#deserialize(params) ⇒ Object
3971 3972 3973 3974 3975 3976 |
# File 'lib/v20211206/models.rb', line 3971 def deserialize(params) @RuleType = params['RuleType'] @DbPattern = params['DbPattern'] @TablePattern = params['TablePattern'] @Columns = params['Columns'] end |