prefuse.data.util
Class FilterRowIterator

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

public class FilterRowIterator
extends IntIterator

Iterator over table rows that filters the output by a given predicate. For each table row, the corresponding tuple is checked against the predicate. Only rows whose tuples pass the filter are included in this iteration.

Author:
jeffrey heer

Constructor Summary
FilterRowIterator(IntIterator rows, Table t, Predicate p)
          Create a new FilterRowIterator.
 
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

FilterRowIterator

public FilterRowIterator(IntIterator rows,
                         Table t,
                         Predicate p)
Create a new FilterRowIterator.

Parameters:
rows - an iterator over table rows
t - the whos rows are being iterated over
p - the filter predicate to use
Method Detail

nextInt

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

hasNext

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

remove

public void remove()
Not supported.

See Also:
Iterator.remove()


Copyright © 2007 Regents of the University of California