@Override
    public boolean check() {
        Preconditions.checkNotNull(address, "elasticsearch type of address is required");
        Preconditions.checkNotNull(index, "elasticsearch type of index is required");
        Preconditions.checkNotNull(esType, "elasticsearch type of type is required");
        Preconditions.checkNotNull(clusterName, "elasticsearch type of clusterName is required");

        if (isAuthMesh()) {
            Preconditions.checkNotNull(userName, "elasticsearch type of userName is required");
            Preconditions.checkNotNull(password, "elasticsearch type of password is required");
        }

        return true;
    }
@date 2018/09/12
@author sishu.yss
@Company: www.dtstack.com
elasticsearch5/elasticsearch5-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/table/ElasticsearchTableInfo.java