On 11/01/11 16:55, Stephen Allen wrote:
As an alternative, you may want to look at Guava [1], which has some nice
Iterator support (including .size()) [2] and an Apache license.

-Stephen

[1] http://code.google.com/p/guava-libraries/
[2]
http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/co
llect/Iterators.html

+1

Jena had specific iterators for pre-generics. Iter grew out of code used in ARQ and then TDB and exists for internal reasons. Mapping between different data structures being one thing that happens quite a lot in TDB. There would be support costs for something non-RDF.

The thing Iter has, like Jena's original iterators, is operations on an extension of an iterator.

Iter<T> z = ...
List<T> x = z.map(...).removeNulls().distinct().toList() ;

        Andy

Reply via email to