@Override public String toString() {
    return "KafkaInputSplit{"
        + "topic='"
        + topic
        + '\''
        + ", startOffset="
        + startOffset
        + ", partition="
        + partition
        + ", endOffset="
        + endOffset
        + ", path="
        + super.getPath().toString()
        + '}';
  }
Compute union of ranges between splits. Splits must share the same topic and partition

@param split1 left split
@param split2 right split

@return new split with a range including both splits.
kafka-handler/src/java/org/apache/hadoop/hive/kafka/KafkaInputSplit.java