Class JoiningIteratorForSolMaps
java.lang.Object
se.liu.ida.hefquin.base.data.utils.JoiningIteratorForSolMaps
- All Implemented Interfaces:
Iterator<SolutionMapping>
This iterator enumerates the result of joining two collections of solution
mappings. The current implementation of this iterator performs a nested
loops join.
If you need the join result materialized, use
SolutionMappingUtils.nestedLoopJoin(Iterable, Iterable)
instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SolutionMapping
protected final Iterable<SolutionMapping>
protected Iterator<SolutionMapping>
protected Iterator<SolutionMapping>
protected SolutionMapping
-
Constructor Summary
ConstructorsConstructorDescriptionJoiningIteratorForSolMaps
(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) JoiningIteratorForSolMaps
(Iterator<SolutionMapping> input1, Iterable<SolutionMapping> input2) -
Method Summary
Modifier and TypeMethodDescriptionstatic WrappingIterable<SolutionMapping>
createAsIterable
(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) getFactory
(Iterable<SolutionMapping> input2) boolean
hasNext()
next()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
input2
-
it1
-
it2
-
currentInputElement
-
nextOutputElement
-
-
Constructor Details
-
JoiningIteratorForSolMaps
public JoiningIteratorForSolMaps(Iterator<SolutionMapping> input1, Iterable<SolutionMapping> input2) -
JoiningIteratorForSolMaps
public JoiningIteratorForSolMaps(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2)
-
-
Method Details
-
createAsIterable
public static WrappingIterable<SolutionMapping> createAsIterable(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<SolutionMapping>
-
next
- Specified by:
next
in interfaceIterator<SolutionMapping>
-
getFactory
-