private static int estimateCompressedSizeInBytes(int size, CompressionType compressionType) {
        return compressionType == CompressionType.NONE ? size : Math.min(Math.max(size / 2, 1024), 1 << 16);
    }
Get an iterator over the deep records.
@return An iterator over the records
clients/src/main/java/org/apache/kafka/common/record/AbstractRecords.java