Class RecyclableIterator<E>

    • Constructor Detail

      • RecyclableIterator

        protected RecyclableIterator​(@Nullable
                                     Runnable recycler)
        Creates a RecyclableIterator with the given optional recycler.
    • Method Detail

      • releaseBatch

        public void releaseBatch()
        Description copied from interface: BulkFormat.RecordIterator
        Releases the batch that this iterator iterated over. This is not supposed to close the reader and its resources, but is simply a signal that this iterator is no used any more. This method can be used as a hook to recycle/reuse heavyweight object structures.
        Specified by:
        releaseBatch in interface BulkFormat.RecordIterator<E>