新增基于schema填充默认值功能(TSG-11886)

This commit is contained in:
qidaijie
2022-09-20 10:41:11 +08:00
parent 933b58ec18
commit 76fe5df4ad
4 changed files with 47 additions and 81 deletions

View File

@@ -25,11 +25,6 @@ import java.util.regex.Pattern;
class TransFunction {
private static final Log logger = LogFactory.get();
/**
* 校验数字正则
*/
private static final Pattern PATTERN = Pattern.compile("[0-9]*");
/**
* IP定位库工具类
*/
@@ -130,7 +125,7 @@ class TransFunction {
Long teid = null;
String[] exprs = param.split(FlowWriteConfig.FORMAT_SPLITTER);
for (String expr : exprs) {
Long value = JsonPathUtil.getLongValue(logValue, expr);
Long value = JsonPathUtil.getTeidValue(logValue, expr);
if (value != null) {
teid = value;
break;