Uses of Interface
org.infinispan.commons.util.CloseableIterator
-
Packages that use CloseableIterator Package Description org.infinispan.commons.util Commons package providing various utility classes -
-
Uses of CloseableIterator in org.infinispan.commons.util
Classes in org.infinispan.commons.util that implement CloseableIterator Modifier and Type Class Description classConcatIterator<E>Iterator that concatenates a bunch of iterables into 1 big iterator.classFilterIterator<E>Iterator that also filters out entries based on the provided predicate.classIteratorMapper<E,S>A iterator that maps each value to the output of the Function.classRemovableCloseableIterator<C>A CloseableIterator implementation that allows for a CloseableIterator that doesn't allow remove operations to implement remove by delegating the call to the provided consumer to remove the previously read value.Fields in org.infinispan.commons.util declared as CloseableIterator Modifier and Type Field Description protected CloseableIterator<C>RemovableCloseableIterator. realIteratorMethods in org.infinispan.commons.util that return CloseableIterator Modifier and Type Method Description CloseableIterator<E>CloseableIterable. iterator()CloseableIterator<E>CloseableIteratorCollection. iterator()CloseableIterator<E>CloseableIteratorCollectionAdapter. iterator()static <E> CloseableIterator<E>Closeables. iterator(Iterator<? extends E> iterator)Creates a closeable iterator from the given iterator that does nothing when close is called.static <R> CloseableIterator<R>Closeables. iterator(BaseStream<R,Stream<R>> stream)Creates a closeable iterator that when closed will close the underlying stream as wellstatic <E> CloseableIterator<E>Closeables. iterator(org.reactivestreams.Publisher<E> publisher, int fetchSize)Converts aPublisherto aCloseableIteratorby utilizing items fetched into an array and refetched as they are consumed from the iterator.Methods in org.infinispan.commons.util with parameters of type CloseableIterator Modifier and Type Method Description static <E> CloseableSpliterator<E>Closeables. spliterator(CloseableIterator<? extends E> iterator, long size, int characteristics)Takes a provided closeable iterator and wraps it appropriately so it can be used as a closeable spliterator that will close the iterator when the spliterator is closed.static <E> Stream<E>Closeables. stream(CloseableIterator<E> iterator, boolean parallel, long size, int characteristics)Creates a stream that when closed will also close the underlying iteratorConstructors in org.infinispan.commons.util with parameters of type CloseableIterator Constructor Description RemovableCloseableIterator(CloseableIterator<C> realIterator, Consumer<? super C> consumer)
-