class ArrowUtils {

	public static RowArrowReader createRowArrowReader(VectorSchemaRoot root, RowType rowType) {
		List<ArrowFieldReader> fieldReaders = new ArrayList<>();
		List<FieldVector> fieldVectors = root.getFieldVectors();
		for (int i = 0; i < fieldVectors.size(); i++) {
			fieldReaders.add(createRowArrowFieldReader(fieldVectors.get(i), rowType.getTypeAt(i)));
		}

		return new RowArrowReader(fieldReaders.toArray(new ArrowFieldReader[0]));
	}

}