Class IteratorUtils
java.lang.Object
org.apache.jena.sparql.service.enhancer.impl.util.IteratorUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static <K,
X, Y> com.google.common.collect.AbstractIterator<com.google.common.collect.Table.Cell<K, X, Iterator<Y>>> partialLeftMergeJoin
(Iterator<X> lhs, Iterator<Y> rhs, Function<X, K> xToK, Function<Y, K> yToK) For every item in lhs return an iterator over the corresponding sub-range of items in rhs.
-
Constructor Details
-
IteratorUtils
public IteratorUtils()
-
-
Method Details
-
partialLeftMergeJoin
public static <K,X, com.google.common.collect.AbstractIterator<com.google.common.collect.Table.Cell<K,Y> X, partialLeftMergeJoinIterator<Y>>> (Iterator<X> lhs, Iterator<Y> rhs, Function<X, K> xToK, Function<Y, K> yToK) For every item in lhs return an iterator over the corresponding sub-range of items in rhs. As soon as rhs is consumed, then for every remaining key in lhs the iterator will be null. Keys in both iterators must appear in the same order - although rhs may omit some or all keys. There MUST NOT exist an item in rhs which has a key that does not correspond to an item in lhs! -
mainBasic
public static void mainBasic() -
main
-