@SuppressWarnings("unchecked")
    public static <K, V> ConsumerRecords<K, V> empty() {
        return (ConsumerRecords<K, V>) EMPTY;
    }
The number of records for all topics
clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecords.java