|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.util.FilterIteratorFactory
public class FilterIteratorFactory
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.
Constructor Summary | |
---|---|
FilterIteratorFactory()
|
Method Summary | |
---|---|
protected static IntIterator |
getAndIterator(Table t,
AndPredicate ap)
|
protected static IntIterator |
getColumnIterator(Table t,
java.lang.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)
|
static IntIterator |
rows(Table t,
Predicate p)
Get a filtered iterator over the rows in the given table, filtered by the given predicate. |
static java.util.Iterator |
tuples(TupleSet ts,
Predicate p)
Get a filtered iterator over the tuples in the given set, filtered by the given predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterIteratorFactory()
Method Detail |
---|
public static java.util.Iterator tuples(TupleSet ts, Predicate p)
ts
- the TupleSet to iterate overp
- the filter predicate
public static IntIterator rows(Table t, Predicate p)
t
- the Table to iterate overp
- the filter predicate
protected static IntIterator getOptimizedIterator(Table t, Predicate p)
t
- the Table to iterator overp
- the filter predicate
protected static IntIterator getColumnIterator(Table t, java.lang.String field, boolean val)
protected static IntIterator getOrIterator(Table t, OrPredicate op)
protected static IntIterator getAndIterator(Table t, AndPredicate ap)
protected static IntIterator getComparisonIterator(Table t, ComparisonPredicate cp)
protected static IntIterator getRangeIterator(Table t, RangePredicate rp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |