public static KafkaInputSplit copyOf(KafkaInputSplit other) {
    return new KafkaInputSplit(other.getTopic(),
        other.getPartition(),
        other.getStartOffset(),
        other.getEndOffset(),
        other.getPath());
  }
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