Package org.apache.jena.util.iterator
A package for defining useful iterators and iterator operations,
including concatenation, mapping, filtering, empty and singleton
iterators, iterator wrappers, and the ExtendedIterator
class used in many places in Jena.
-
Interface Summary Interface Description ClosableIterator<T> An iterator which should be closed after use.ExtendedIterator<T> An ExtendedIterator is aClosableIterator
on which other operations are defined for convenience in iterator composition: composition, filtering in, filtering out, and element mapping.
NOTE that the result of these operations consumes the base iterator(s); they do not make independent copies.MapFilter<R,S> Combines the actions ofMap
andFilter
, mapping unacceptable objects tonull
and acceptable ones to their mapped value. -
Class Summary Class Description FilterIterator<T> Creates a sub-Iterator by filtering.LazyIterator<T> An ExtendedIterator that is created lazily.Map1Iterator<From,To> An iterator that consumes an underlying iterator and maps its results before delivering them; supports remove if the underlying iterator does.MapFilterIterator<T,X> A MapFilterIterator takes a MapFilter and an [Extended]Iterator and returns a new ExtendedIterator which delivers the sequence of all non-null elements MapFilter(X) for X from the base iterator.NiceIterator<T> NiceIterator is the standard base class implementing ExtendedIterator.NullIterator<T> An empty iterator.RandomOrderIterator<T> RandomOrderIterator - Reorders the elements returned by an Iterator.SingletonIterator<T> A ClosableIterator that contains only one elementUniqueFilter<T> A Filter that filters out duplicate values.WrappedIterator<T> a WrappedIterator is an ExtendedIterator wrapping around a plain (or presented as plain) Iterator.