Class EpochAndRecordsMap<K,V>
java.lang.Object
io.confluent.parallelconsumer.internal.EpochAndRecordsMap<K,V>
For tagging polled records with our epoch
- See Also:
-
BrokerPollSystem#partitionAssignmentEpoch
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEpochAndRecordsMap(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> poll, PartitionStateManager<K, V> pm) -
Method Summary
Modifier and TypeMethodDescriptionintcount()The number of records for all topicsbooleanMap<org.apache.kafka.common.TopicPartition,EpochAndRecordsMap<K, V>.RecordsAndEpoch> inthashCode()Set<org.apache.kafka.common.TopicPartition>Get the partitions which have records contained in this record set.records(org.apache.kafka.common.TopicPartition partition) Get just the records for the given partitiontoString()
-
Constructor Details
-
EpochAndRecordsMap
public EpochAndRecordsMap(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> poll, PartitionStateManager<K, V> pm)
-
-
Method Details
-
partitions
Get the partitions which have records contained in this record set.- Returns:
- the set of partitions with data in this record set (may be empty if no data was returned)
-
records
public EpochAndRecordsMap<K,V>.RecordsAndEpoch records(org.apache.kafka.common.TopicPartition partition) Get just the records for the given partition- Parameters:
partition- The partition to get records for
-
count
public int count()The number of records for all topics -
getRecordMap
public Map<org.apache.kafka.common.TopicPartition,EpochAndRecordsMap<K, getRecordMap()V>.RecordsAndEpoch> -
equals
-
hashCode
public int hashCode() -
toString
-