public int getVectorizedBatchResult(int batchIndex) {
    int result = batchIndexToResult[batchIndex];
    return (result <= MAY_FORWARD) ? FORWARD : result;
  }
Get vectorized batch result for particular index.
@param batchIndex index of the key in the batch.
@return the result, same as from {@link TopNHash#tryStoreKey(HiveKey,boolean)}
ql/src/java/org/apache/hadoop/hive/ql/exec/TopNHash.java