private static FilterFunction createFilterFunction(FilterRule filterRule, String transformName) {
        StreamField streamField = filterRule.getSourceField();
        String fieldType = streamField.getFieldType();
        String fieldFormat = streamField.getFieldFormat();
        String fieldName = streamField.getFieldName();
        FunctionParam sourceFieldInfo;
        if (FieldType.FUNCTION.name().equalsIgnoreCase(streamField.getFieldType())) {
            sourceFieldInfo = new CustomFunction(streamField.getFieldName());
        } else {
            sourceFieldInfo = new FieldInfo(fieldName, transformName,
                    FieldInfoUtils.convertFieldFormat(fieldType, fieldFormat));
        }
        OperationType operationType = filterRule.getOperationType();
        CompareOperator compareOperator = parseCompareOperator(operationType);
        TargetValue targetValue = filterRule.getTargetValue();
        FunctionParam target = parseTargetValue(targetValue, transformName);
        RuleRelation relationWithPost = filterRule.getRelationWithPost();
        LogicOperator logicOperator = parseLogicOperator(relationWithPost);
        if (compareOperator instanceof SingleValueCompareOperator) {
            return new SingleValueFilterFunction(logicOperator, sourceFieldInfo,
                    (SingleValueCompareOperator) compareOperator, target);
        } else {
            List<FunctionParam> targets = new ArrayList<>();
            if (CollectionUtils.isNotEmpty(filterRule.getTargetValues())) {
                for (TargetValue value : filterRule.getTargetValues()) {
                    targets.add(parseTargetValue(value, transformName));
                }
            } else {
                targets.add(target);
            }
            return new MultiValueFilterFunction(sourceFieldInfo, targets, (MultiValueCompareOperator) compareOperator,
                    logicOperator);
        }
    }
Parse filter strategy from TransformResponse and convert to the filter strategy of sort protocol

@param transformResponse The transform response that may contain filter operation
@return The filter strategy, see {@link FilterStrategy}
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/FilterFunctionUtils.java