Package com.github.basking2.sdsai.itrex.iterators
package com.github.basking2.sdsai.itrex.iterators
Various helpful iterators.
-
ClassDescriptionA buffer iterator pulls elements from a source iterator and store N elements.And Iterator that batches and streams reads from an InputStream.Similar to the
NullSkippingIterator
, this will skip values if they fail a provided check.A class that wraps an iterator such that calls toFutureIterator.next()
result in aFuture
being returned.HeadIterator<T>Return the first N elements of another iterator.MappingIterator<T,R> An iterator that wraps anotherIterator
and maps its output values to values this returns.An iterator that pre-fetches the next value from the iterator it encloses so as to skip nulls.This iterator wraps its input iterator inHeadIterator
s until no elements remain in the source iterator.Fetch from a set of iterators concurrently and return the first ready element.A ParallelMappingIterator will map elements in threads, using an executor service.An iterator that prefetches and caches some number of elements from another iterator.Iterate over a range of values.ZipIterator<T1,T2>