public Set<TopicPartition> partitions() {
        return partitions;
    }
returns all partitions for which no offsets are defined.
@return all partitions without offsets
clients/src/main/java/org/apache/kafka/clients/consumer/NoOffsetForPartitionException.java