if( collections[ 0 ] instanceof FalseCollection ) // force reset on FalseCollection
( (FalseCollection) collections[ 0 ] ).reset( null );
while( values[ 0 ].hasNext() )
{
IndexTuple current = (IndexTuple) values[ 0 ].next();
int pos = current.getIndex();
// if this is the first (lhs) co-group, just use values iterator
// we are guaranteed all the remainder tuples in the iterator are from pos == 0
if( numSelfJoins == 0 && pos == 0 )
{
( (FalseCollection) collections[ 0 ] ).reset( createIterator( current, values[ 0 ] ) );
break;
}
collections[ pos ].add( current.getTuple() ); // get the value tuple for this cogroup
}
}