/** * Iterate over the GenericRecord in the block, read the hoodie key and partition path and * call subclass processors to handle it. */ private void processAvroDataBlock(HoodieAvroDataBlock dataBlock) throws Exception { // TODO (NA) - Implement getRecordItr() in HoodieAvroDataBlock and use that here List<IndexedRecord> recs = dataBlock.getRecords(); totalLogRecords.addAndGet(recs.size()); for (IndexedRecord rec : recs) { HoodieRecord<? extends HoodieRecordPayload> hoodieRecord = SpillableMapUtils.convertToHoodieRecordPayload((GenericRecord) rec, this.payloadClassFQN); processNextRecord(hoodieRecord); } }