public static BoolQueryBuilder setPredicateclause(BaseSideInfo sideInfo) {

        BoolQueryBuilder boolQueryBuilder = null;
        List<PredicateInfo> predicateInfos = sideInfo.getSideTableInfo().getPredicateInfoes();
        if (predicateInfos.size() > 0) {
            boolQueryBuilder = new BoolQueryBuilder();
            for (PredicateInfo info : predicateInfos) {
                boolQueryBuilder = Es7Util.buildFilterCondition(boolQueryBuilder, info, sideInfo);
            }
        }

        return boolQueryBuilder;
    }
@description:
@program: flink.sql
@author: lany
@create: 2021/01/11 10:23
elasticsearch7/elasticsearch7-side/elasticsearch7-side-core/src/main/java/com/dtstack/flink/sql/side/elasticsearch7/util/Es7Util.java