public boolean hasCompression() {
        return compression != null;
    }
Checks if the compression algorithm is defined or not.

@return true if the compression algorithm is defined; false otherwise
clickhouse-data/src/main/java/com/clickhouse/data/ClickHousePassThruStream.java