@Override public boolean hasNext() {
      return false;
    }
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