@Override
    public RowData nextRecord(RowData reuse) {
        // return the next row
        row.setRowId(this.nextRow++);
        return row;
    }
@Test
    void testReachEnd() throws Exception {
        FileInputSplit[] splits = createSplits(testFileFlat, 1);
        try (OrcColumnarRowSplitReader reader =
                createReader(new int[] {0, 1}, testSchemaFlat, new HashMap<>(), splits[0])) {
            while (!reader.reachedEnd()) {
                reader.nextRecord(null);
            }
            assertThat(reader.reachedEnd()).isTrue();
        }
    }