|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedIterator
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.
| Method Summary | |
|---|---|
ExtendedIterator |
andThen(ClosableIterator other)
return a new iterator which delivers all the elements of this iterator and then all the elements of the other iterator. |
ExtendedIterator |
filterDrop(Filter f)
return a new iterator containing only the elements of _this_ which are rejected by the filter _f_. |
ExtendedIterator |
filterKeep(Filter f)
return a new iterator containing only the elements of _this_ which pass the filter _f_. |
ExtendedIterator |
mapWith(Map1 map1)
return a new iterator where each element is the result of applying _map1_ to the corresponding element of _this_. |
java.lang.Object |
removeNext()
Answer the next object, and remove it. |
java.util.List |
toList()
Answer a list of the [remaining] elements of this iterator, in order, consuming this iterator. |
java.util.Set |
toSet()
Answer a set of the [remaining] elements of this iterator, in order, consuming this iterator. |
| Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator |
|---|
close |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Method Detail |
|---|
java.lang.Object removeNext()
ExtendedIterator andThen(ClosableIterator other)
ExtendedIterator filterKeep(Filter f)
ExtendedIterator filterDrop(Filter f)
ExtendedIterator mapWith(Map1 map1)
java.util.List toList()
java.util.Set toSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||