void examineBatch(VectorizedRowBatch batch, VectorExtractRow vectorExtractRow,
              Object[][] randomRows, int firstRandomRowIndex ) {

    int rowSize = vectorExtractRow.getCount();
    Object[] row = new Object[rowSize];
    for (int i = 0; i < batch.size; i++) {
      vectorExtractRow.extractRow(batch, i, row);
      Object[] expectedRow = randomRows[firstRandomRowIndex + i];
      for (int c = 0; c < rowSize; c++) {
        Object actualValue = row[c];
        Object expectedValue = expectedRow[c];
        if (actualValue == null || expectedValue == null) {
          if (actualValue != expectedValue) {
            fail("Row " + (firstRandomRowIndex + i) + " and column " + c + " mismatch");
          }
        } else if (!actualValue.equals(expectedValue)) {
          fail("Row " + (firstRandomRowIndex + i) + " and column " + c + " mismatch");
        }
      }
    }
  }
Unit test for the vectorized conversion to and from row object[].
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorRowObject.java