public Object runEvaluatorOnRange(VectorPTFEvaluatorBase evaluator, Range range,
      boolean resetAfterCalculation) throws HiveException {
    BlockIterator iterator = new BlockIterator(range);
    Object result = iterator.run(evaluator);
    result = copyResultIfNeeded(evaluator, result);
    if (resetAfterCalculation){
      evaluator.resetEvaluator();
    }
    return result;
  }
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