|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.data.util.FilterIterableFactory
public class FilterIterableFactory
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 cases increasing performance by only visiting the tuples which will pass the filter condition.
Constructor Summary | |
---|---|
FilterIterableFactory()
|
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
|
tuples(TupleSet<T> 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 FilterIterableFactory()
Method Detail |
---|
public static <T extends Tuple<?>> java.lang.Iterable<T> tuples(TupleSet<T> 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 |