mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
增加Apache Pulsar MQ支持 (#3791)
* done pulsarmq * del pulsar consumer * pulsar partition * done pulsar consumer&connector * update pulsar-client version to 2.8.1 Co-authored-by: agapple <jianghang115@gmail.com>
This commit is contained in:
@@ -671,16 +671,33 @@ public class MQMessageUtils {
|
||||
}
|
||||
|
||||
public static class PartitionData {
|
||||
|
||||
/**
|
||||
* 当{schemaName.tableName}没有正则时,就匹配{schemaName.tableName}
|
||||
*/
|
||||
public String simpleName;
|
||||
/**
|
||||
* 当{schemaName.tableName}有正则时,匹配正则
|
||||
*/
|
||||
public AviaterRegexFilter regexFilter;
|
||||
/**
|
||||
* hash模式
|
||||
*/
|
||||
public HashMode hashMode = new HashMode();
|
||||
}
|
||||
|
||||
public static class HashMode {
|
||||
|
||||
/**
|
||||
* 当{schemaName.tableName}:$pk$时,使用自动主键hash
|
||||
*/
|
||||
public boolean autoPkHash = false;
|
||||
/**
|
||||
* 当表达式仅为{schemaName.tableName},没有:时,仅使用table hash
|
||||
*/
|
||||
public boolean tableHash = false;
|
||||
|
||||
/**
|
||||
* 当表达式为{schemaName.tableName}:id^name^age时,pkNames为:id, name, age三个
|
||||
*/
|
||||
public List<String> pkNames = new ArrayList<>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user