public static ClickHouseCompression fromMimeType(String mimeType) {
        ClickHouseCompression compression = NONE;

        if (mimeType != null) {
            for (ClickHouseCompression c : values()) {
                if (c.mimeType.equals(mimeType)) {
                    compression = c;
                    break;
                }
            }
        }

        return compression;
    }
Get compression algorithm based on given MIME type.

@param mimeType MIME type
@return compression algorithm
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseCompression.java