protected void spillBatchRepeated(VectorizedRowBatch batch,
      VectorMapJoinHashTableResult hashTableResult) throws HiveException, IOException {

    if (bigTableVectorSerializeRow == null) {
      setupSpillSerDe(batch);
    }

    int[] selected = batch.selected;
    boolean selectedInUse = batch.selectedInUse;

    for (int logical = 0; logical < batch.size; logical++) {
      int batchIndex = (selectedInUse ? selected[logical] : logical);
      spillSerializeRow(batch, batchIndex, hashTableResult.spillPartitionId());
    }
  }
Generate optimized results when entire batch key is repeated and it matched the hash map.

@param batch
         The big table batch.
@param hashMapResult
         The hash map results for the repeated key.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinGenerateResultOperator.java