增加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:
Chad2li
2021-10-09 15:51:45 +08:00
committed by GitHub
parent 4ce401d219
commit 5b6fd8094a
16 changed files with 1619 additions and 10 deletions

View File

@@ -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<>();
}