public void write(Row row) {
    for (int i = 0; i < fieldWriters.length; i++) {
      fieldWriters[i].write(row, i);
    }
    rowCount++;
  }
@Test
  public void testWrite() {
    ArrowRecordBatch recordBatch = createArrowRecordBatch();
    System.out.println("recordBatch " + recordBatch);
    recordBatch.close();
  }