public static void setEstimation(String topic, CompressionType type, float ratio) {
        float[] compressionRatioForTopic = getAndCreateEstimationIfAbsent(topic);
        synchronized (compressionRatioForTopic) {
            compressionRatioForTopic[type.id] = ratio;
        }
    }
Set the compression estimation for a topic compression type combination. This method is for unit test purpose.
clients/src/main/java/org/apache/kafka/common/record/CompressionRatioEstimator.java