@Override
    public AbstractTableInfo getTableInfo(String tableName, String fieldsInfo, Map<String, Object> props) throws Exception {

        Elasticsearch7SideTableInfo elasticsearch7SideTableInfo = new Elasticsearch7SideTableInfo();
        elasticsearch7SideTableInfo.setName(tableName);
        parseFieldsInfo(fieldsInfo, elasticsearch7SideTableInfo);
        parseCacheProp(elasticsearch7SideTableInfo, props);
        elasticsearch7SideTableInfo.setAddress((String) props.get(KEY_ES7_ADDRESS.toLowerCase()));
        elasticsearch7SideTableInfo.setClusterName((String) props.get(KEY_ES7_CLUSTER.toLowerCase()));
        elasticsearch7SideTableInfo.setIndex((String) props.get(KEY_ES7_INDEX.toLowerCase()));

        String authMethStr = (String) props.get(KEY_ES7_AUTHMESH.toLowerCase());
        if (authMethStr != null && StringUtils.equalsIgnoreCase(KEY_TRUE, authMethStr)) {
            elasticsearch7SideTableInfo.setAuthMesh(MathUtil.getBoolean(authMethStr));
            elasticsearch7SideTableInfo.setUserName(MathUtil.getString(props.get(KEY_ES7_USERNAME.toLowerCase())));
            elasticsearch7SideTableInfo.setPassword(MathUtil.getString(props.get(KEY_ES7_PASSWORD.toLowerCase())));
        }

        if (MathUtil.getLongVal(props.get(elasticsearch7SideTableInfo.ERROR_LIMIT.toLowerCase())) != null) {
            elasticsearch7SideTableInfo.setErrorLimit(MathUtil.getLongVal(props.get(elasticsearch7SideTableInfo.ERROR_LIMIT.toLowerCase())));
        }

        elasticsearch7SideTableInfo.check();
        return elasticsearch7SideTableInfo;
    }
@description: elasticsearch side module core
@program: flink.sql
@author: lany
@create: 2021/01/11 10:21
elasticsearch7/elasticsearch7-side/elasticsearch7-side-core/src/main/java/com/dtstack/flink/sql/side/elasticsearch7/table/Elasticsearch7SideParser.java