Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Rules []MappingRule `json:"mapping_rules"`
Filter string `json:"filter_expr,omitempty"` // 过滤条件,返回 bool
}
Config 任务级转换配置
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 管理任务级转换引擎的生命周期
func NewManager ¶
func NewManager() *Manager
func (*Manager) CompileAndCache ¶
CompileAndCache 预编译配置并缓存。若已存在则覆盖。
func (*Manager) Invalidate ¶
Invalidate 清理缓存(任务删除/配置变更时调用)
type MappingRule ¶
type MappingRule struct {
TargetCol string `json:"target_col"`
SourceCol string `json:"source_col,omitempty"` // 直连字段(可选)
Expr string `json:"expr"` // 表达式(优先级高于 SourceCol)
}
MappingRule 定义目标字段的映射来源或计算表达式
Click to show internal directories.
Click to hide internal directories.