protected void spillHashMapBatch(VectorizedRowBatch batch,
      VectorMapJoinHashTableResult[] hashTableResults,
      int[] spills, int[] spillHashTableResultIndices, int spillCount)
          throws HiveException, IOException {

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

    for (int i = 0; i < spillCount; i++) {
      int batchIndex = spills[i];

      int hashTableResultIndex = spillHashTableResultIndices[i];
      VectorMapJoinHashTableResult hashTableResult = hashTableResults[hashTableResultIndex];

      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