public void set(
            final E[] records, final int num, final long offset, final long skipCountOfFirst) {
        this.records = records;
        this.num = num;
        this.pos = 0;
        this.recordAndPosition.set(null, offset, skipCountOfFirst);
    }
@Test
    void testRecycler() {
        final AtomicBoolean recycled = new AtomicBoolean();
        final ArrayResultIterator<Object> iter =
                new ArrayResultIterator<>(() -> recycled.set(true));

        iter.releaseBatch();

        assertThat(recycled.get()).isTrue();
    }