class ArrowUtils {

	public static RowDataArrowReader createRowDataArrowReader(VectorSchemaRoot root, RowType rowType) {
		List<ColumnVector> columnVectors = new ArrayList<>();
		List<FieldVector> fieldVectors = root.getFieldVectors();
		for (int i = 0; i < fieldVectors.size(); i++) {
			columnVectors.add(createColumnVector(fieldVectors.get(i), rowType.getTypeAt(i)));
		}

		return new RowDataArrowReader(columnVectors.toArray(new ColumnVector[0]));
	}

}