private Object[] getOrderingValuesFromRow(VectorizedRowBatch vectorizedRowBatch, int rowIndexInBatch) {
    Object[] orderingValues = new Object[orderColumnMap.length];
    // ordering columns are at the beginning in the buffered batch
    for (int i = 0; i < orderColumnMap.length; i++) {
      orderingValues[i] = getValueFromBatch(vectorizedRowBatch, i, rowIndexInBatch);
    }
    return orderingValues;
  }
Returns the values of ordering columns from a given batch and given row in an Object[].
@param vectorizedRowBatch
@param rowIndexInBatch
@return
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/ptf/VectorPTFGroupBatches.java