private int generateHashMultiSetResultSingleValue(VectorizedRowBatch batch,
      int[] allMatches, int allMatchesIndex, int duplicateCount, int numSel)
          throws HiveException, IOException {

    // LOG.debug("generateHashMultiSetResultSingleValue enter...");

    // Generate result within big table batch itself.

    // LOG.debug("generateHashMultiSetResultSingleValue with big table...");

    for (int i = 0; i < duplicateCount; i++) {

      int batchIndex = allMatches[allMatchesIndex + i];

      // Use the big table row as output.
      batch.selected[numSel++] = batchIndex;
    }

    return numSel;
  }
Generate the single value match inner big table only join output results for a match.

@param batch
         The big table batch.
@param allMatches
         A subset of the rows of the batch that are matches.
@param allMatchesIndex
         The logical index into allMatches of the first equal key.
@param duplicateCount
         The number of duplicates or equal keys.
@param numSel
         The current count of rows in the rebuilding of the selected array.

@return
         The new count of selected rows.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinInnerBigOnlyGenerateResultOperator.java