com.hp.hpl.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.
|
Java Source File Name | Type | Comment |
ArrayIterator.java | Class | An Iterator for arrays. |
ClosableIterator.java | Interface | An iterator which should be closed after use. |
ConcatenatedIterator.java | Class | An iterator that represents the concatenation of two individual iterators. |
EarlyBindingIterator.java | Class | Fully execute the iterator immediately, but pretend we haven't. |
ExtendedIterator.java | Interface | an ExtendedIterator is a ClosableIterator on which other operations are
defined for convenience in iterator composition: composition, filtering
in, filtering out, and element mapping.
NOTE that the result of each of these operations consumes the base
iterator(s); they do not make independant copies.
The canonical implementation of ExtendedIterator is NiceIterator, which
also defines static methods for these operations that will work on any
ClosableIterators. |
Filter.java | Class | boolean functions wrapped to be used in filtering iterators. |
FilterDropIterator.java | Class | A subclass of FiterIterator which discards the elements that pass the
filter. |
FilterIterator.java | Class | Creates a sub-Iterator by filtering. |
FilterKeepIterator.java | Class | A subclass of FilterIterator which keeps the elements that pass the
test. |
IteratorIterator.java | Class | Given an Iterator that returns Iterator's, this creates an
Iterator over the next level values. |
LateBindingIterator.java | Class | An Iterator that is created lazily. |
LazyIterator.java | Class | An ExtendedIterator that is created lazily.
This is useful when constructing an iterator is expensive and
you'd prefer to delay doing it until certain it's actually needed.
For example, if you have iterator1.andThen(iterator2)
you could implement iterator2 as a LazyIterator. |
Map1.java | Interface | Converts an Object to another Object. |
Map1Iterator.java | Class | An iterator that consumes an underlying iterator and maps its results before
delivering them; supports remove if the underlying iterator does. |
MapFilter.java | Interface | Combines the actions of Map and Filter , mapping
unacceptable objects to null and acceptable ones to their mapped
value. |
MapFilterIterator.java | Class | 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.java | Class | NiceIterator is the standard base class implementing ExtendedIterator. |
NullIterator.java | Class | An empty iterator. |
RandomOrderIterator.java | Class | RandomOrderIterator - Reorders the elements returned by an Iterator. |
SingletonIterator.java | Class | |
UniqueExtendedIterator.java | Class | A variant on the closable/extended iterator that filters out
duplicate values. |
WrappedIterator.java | Class | a WrappedIterator is an ExtendedIterator wrapping around a plain (or
presented as plain) Iterator. |