# Class: KafkaConsumerRecords

## vertx-kafka-client-js/kafka_consumer_records~ KafkaConsumerRecords

#### new KafkaConsumerRecords()

Vert.x Kafka consumer records

Source:
  - vertx-kafka-client-js/kafka_consumer_records.js, line 30

### Methods

#### isEmpty() → {boolean}

Source:
  - vertx-kafka-client-js/kafka_consumer_records.js, line 56

##### Returns:

whether this batch contains any records

Type
  boolean

#### recordAt(index) → {KafkaConsumerRecord}

Get the record at the given index

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the index of the record to get

Source:
  - vertx-kafka-client-js/kafka_consumer_records.js, line 70

##### Returns:

Type
  KafkaConsumerRecord

#### size() → {number}

Source:
  - vertx-kafka-client-js/kafka_consumer_records.js, line 43

##### Returns:

the total number of records in this batch

Type
  number