prefuse.data.util
Class UniqueRowIterator

java.lang.Object
  extended by prefuse.util.collections.AbstractLiteralIterator
      extended by prefuse.util.collections.IntIterator
          extended by prefuse.data.util.UniqueRowIterator
All Implemented Interfaces:
java.util.Iterator, LiteralIterator

public class UniqueRowIterator
extends IntIterator

IntIterator over rows that ensures that no duplicates appear in the iteration. Uses a bitset to note rows it has has seen and not pass along duplicate row values.

Author:
jeffrey heer

Constructor Summary
UniqueRowIterator(IntIterator iter)
          Create a new UniqueRowIterator.
 
Method Summary
 boolean hasNext()
           
 int nextInt()
           
 void remove()
          Not supported.
 
Methods inherited from class prefuse.util.collections.IntIterator
isDoubleSupported, isFloatSupported, isIntSupported, isLongSupported, next, nextDouble, nextFloat, nextLong
 
Methods inherited from class prefuse.util.collections.AbstractLiteralIterator
isBooleanSupported, nextBoolean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueRowIterator

public UniqueRowIterator(IntIterator iter)
Create a new UniqueRowIterator.

Parameters:
iter - a source iterator over table rows
Method Detail

hasNext

public boolean hasNext()
See Also:
Iterator.hasNext()

nextInt

public int nextInt()
Specified by:
nextInt in interface LiteralIterator
Specified by:
nextInt in class IntIterator
See Also:
LiteralIterator.nextInt()

remove

public void remove()
Not supported.

See Also:
Iterator.remove()


Copyright © 2007 Regents of the University of California