public static float estimation(String topic, CompressionType type) {
        float[] compressionRatioForTopic = getAndCreateEstimationIfAbsent(topic);
        return compressionRatioForTopic[type.id];
    }
Get the compression ratio estimation for a topic and compression type.
clients/src/main/java/org/apache/kafka/common/record/CompressionRatioEstimator.java