@Override public ConsumerRecord<byte[], byte[]> next() {
      throw new IllegalStateException("this is an empty iterator");
    }
Empty iterator for empty splits when startOffset == endOffset, this is added to avoid clumsy if condition.
kafka-handler/src/java/org/apache/hadoop/hive/kafka/KafkaRecordReader.java