@Override public IntervalIterator reset() throws IOException { queue.clear(); maxRight = Integer.MIN_VALUE; lastLeft = Integer.MIN_VALUE; endOfProcess = false; for ( int i = 0; i < n; i++ ) { // The case != index is identical to the TRUE/FALSE case in AndIntervalIterator. final Index indexIteratorIndex = indexIterator[ i ].index(); if ( indexIteratorIndex == index && indexIteratorIndex.hasPositions ) { curr[ i ] = indexIterator[ i ].nextPosition(); queue.enqueue( i ); maxRight = Math.max( maxRight, curr[ i ] ); } } if ( ASSERTS ) assert ! queue.isEmpty(); return this; }
@Override public IntervalIterator reset() throws IOException { queue.clear(); maxRight = Integer.MIN_VALUE; lastLeft = Integer.MIN_VALUE; endOfProcess = false; for ( int i = 0; i < n; i++ ) { // The case != index is identical to the TRUE/FALSE case in AndIntervalIterator. final Index indexIteratorIndex = indexIterator[ i ].index(); if ( indexIteratorIndex == index && indexIteratorIndex.hasPositions ) { curr[ i ] = indexIterator[ i ].nextPosition(); queue.enqueue( i ); maxRight = Math.max( maxRight, curr[ i ] ); } } if ( ASSERTS ) assert ! queue.isEmpty(); return this; }
public void reset() throws IOException { queue.clear(); maxRight = Integer.MIN_VALUE; lastLeft = Integer.MIN_VALUE; next = null; endOfProcess = false; for ( int i = 0; i < n; i++ ) { // The case != index is identical to the TRUE/FALSE case in AndIntervalIterator. final Index indexIteratorIndex = indexIterator[ i ].index(); if ( indexIteratorIndex == index && indexIteratorIndex.hasPositions ) { position[ i ] = indexIterator[ i ].positionArray(); count[ i ] = indexIterator[ i ].count(); curr[ i ] = position[ i ][ currPos[ i ] = 0 ]; queue.enqueue( i ); maxRight = Math.max( maxRight, curr[ i ] ); } } if ( ASSERTS ) assert ! queue.isEmpty(); }
public void reset() throws IOException { queue.clear(); maxRight = Integer.MIN_VALUE; lastLeft = Integer.MIN_VALUE; next = null; endOfProcess = false; for ( int i = 0; i < n; i++ ) { // The case != index is identical to the TRUE/FALSE case in AndIntervalIterator. final Index indexIteratorIndex = indexIterator[ i ].index(); if ( indexIteratorIndex == index && indexIteratorIndex.hasPositions ) { position[ i ] = indexIterator[ i ].positionArray(); count[ i ] = indexIterator[ i ].count(); curr[ i ] = position[ i ][ currPos[ i ] = 0 ]; queue.enqueue( i ); maxRight = Math.max( maxRight, curr[ i ] ); } } if ( ASSERTS ) assert ! queue.isEmpty(); }
public void reset() throws IOException { emitted = extracted = 0; next = null; positionQueue.clear(); for ( int i = computeFront(), k; i-- != 0; ) { k = front[ i ]; position[ k ] = indexIterator[ k ].positionArray(); count[ k ] = indexIterator[ k ].count(); curr[ k ] = position[ k ][ 0 ]; currPos[ k ] = 0; positionQueue.enqueue( k ); } if ( ASSERTS ) assert ! positionQueue.isEmpty(); }
public void reset() throws IOException { emitted = extracted = 0; next = null; positionQueue.clear(); for ( int i = computeFront(), k; i-- != 0; ) { k = front[ i ]; position[ k ] = indexIterator[ k ].positionArray(); count[ k ] = indexIterator[ k ].count(); curr[ k ] = position[ k ][ 0 ]; currPos[ k ] = 0; positionQueue.enqueue( k ); } if ( ASSERTS ) assert ! positionQueue.isEmpty(); }
public void reset() throws IOException { last = Integer.MIN_VALUE; positionQueue.clear(); for ( int i = computeFront(), k; i-- != 0; ) { k = front[ i ]; if ( indexIterator[ k ].index() == index && indexIterator[ k ].index().hasPositions ) { position[ k ] = indexIterator[ k ].positionArray(); count[ k ] = indexIterator[ k ].count(); curr[ k ] = position[ k ][ currPos[ k ] = 0 ]; positionQueue.enqueue( k ); } } if ( ASSERTS ) assert ! positionQueue.isEmpty(); next = Interval.valueOf( curr[ positionQueue.first() ] ); }
public void reset() throws IOException { positionQueue.clear(); for ( int i = computeFront(), k; i-- != 0; ) { k = front[ i ]; if ( indexIterator[ k ].index() == index && indexIterator[ k ].index().hasPositions ) { position[ k ] = indexIterator[ k ].positionArray(); count[ k ] = indexIterator[ k ].count(); curr[ k ] = position[ k ][ currPos[ k ] = 0 ]; positionQueue.enqueue( k ); } } if ( ASSERTS ) assert ! positionQueue.isEmpty(); next = Interval.valueOf( curr[ positionQueue.first() ] ); }