Search in sources :

Example 1 with RuleQueryRule

use of com.webank.wedatasphere.qualitis.query.response.RuleQueryRule in project Qualitis by WeBankFinTech.

the class RuleQueryServiceImpl method putIntoRuleOfProject.

private void putIntoRuleOfProject(RuleDataSource ds, RuleQueryProject queryProject) {
    Rule rule = ds.getRule();
    Long ruleId = rule.getId();
    if (queryProject.getDataMap().containsKey(ruleId)) {
        RuleQueryRule queryRule = queryProject.getDataMap().get(ruleId);
        putIntoClusterOfRule(ds, queryRule);
        return;
    }
    // If not contain
    RuleQueryRule ruleSrc = newRuleQueryRule(rule, ds);
    queryProject.addRuleQueryRule(ruleSrc);
}
Also used : RuleQueryRule(com.webank.wedatasphere.qualitis.query.response.RuleQueryRule) Rule(com.webank.wedatasphere.qualitis.rule.entity.Rule) RuleQueryRule(com.webank.wedatasphere.qualitis.query.response.RuleQueryRule)

Aggregations

RuleQueryRule (com.webank.wedatasphere.qualitis.query.response.RuleQueryRule)1 Rule (com.webank.wedatasphere.qualitis.rule.entity.Rule)1