| java.lang.Object prefuse.data.util.FilterIteratorFactory
FilterIteratorFactory | public class FilterIteratorFactory (Code) | | Factory class that creates optimized filter iterators. When possible,
this factory will attempt to create an optimized query plan by using
available indexes, in many incrasing performance by only visiting
the tuples which will pass the filter condition.
author: jeffrey heer |
Method Summary | |
protected static IntIterator | getAndIterator(Table t, AndPredicate ap) | protected static IntIterator | getColumnIterator(Table t, String field, boolean val) | protected static IntIterator | getComparisonIterator(Table t, ComparisonPredicate cp) | protected static IntIterator | getOptimizedIterator(Table t, Predicate p) Get an optimized iterator over the rows of a table, if possible. | protected static IntIterator | getOrIterator(Table t, OrPredicate op) | protected static IntIterator | getRangeIterator(Table t, RangePredicate rp) | public static IntIterator | rows(Table t, Predicate p) Get a filtered iterator over the rows in the given table,
filtered by the given predicate. | public static Iterator | tuples(TupleSet ts, Predicate p) Get a filtered iterator over the tuples in the given set,
filtered by the given predicate. |
getOptimizedIterator | protected static IntIterator getOptimizedIterator(Table t, Predicate p)(Code) | | Get an optimized iterator over the rows of a table, if possible.
Parameters: t - the Table to iterator over Parameters: p - the filter predicate an optimized iterator, or null if no optimization was found |
rows | public static IntIterator rows(Table t, Predicate p)(Code) | | Get a filtered iterator over the rows in the given table,
filtered by the given predicate.
Parameters: t - the Table to iterate over Parameters: p - the filter predicate a filtered iterator over the table rows |
tuples | public static Iterator tuples(TupleSet ts, Predicate p)(Code) | | Get a filtered iterator over the tuples in the given set,
filtered by the given predicate.
Parameters: ts - the TupleSet to iterate over Parameters: p - the filter predicate a filtered iterator over the tuples |
|
|