Class RemovableCloseableIterator<K,​C>

  • All Implemented Interfaces:
    AutoCloseable, Iterator<C>, CloseableIterator<C>

    public class RemovableCloseableIterator<K,​C>
    extends RemovableCloseableIterator<C>
    Deprecated.
    Users should use RemovableCloseableIterator instead
    A CloseableIterator implementation that allows for a CloseableIterator that doesn't allow remove operations to implement remove by delegating the call to the provided cache to remove the previously read value. The key used to remove from the cache is determined by first applying the removeFunction to the value retrieved from the iterator.
    Since:
    8.0
    Author:
    wburns
    • Constructor Detail

      • RemovableCloseableIterator

        public RemovableCloseableIterator​(CloseableIterator<C> realIterator,
                                          Cache<K,​?> cache,
                                          Function<? super C,​K> removeFunction)
        Deprecated.