public void resetBatchIteration() {
    nextRowIndex = 0;
    batchCount = 0;
  }
Generate random batch source from a random Object[] row source (VectorRandomRowSource).
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/VectorRandomBatchSource.java