@Test public void testLogicalAnd() { for (int i = 0; i < basicFilters.size(); i++) { for (int j = 0; j < basicFilters.size(); j++) { LogicalTupleFilter f = logical(FilterOperatorEnum.AND, basicFilters.get(i), basicFilters.get(j)); ConciseSet r = basicResults.get(i).clone(); r.retainAll(basicResults.get(j)); assertEquals(r, eval.evaluate(f)); } } }
public ConciseSet evaluate(TupleFilter filter) { if (filter == null) return null; if (filter instanceof LogicalTupleFilter) return evalLogical((LogicalTupleFilter) filter); if (filter instanceof CompareTupleFilter) return evalCompare((CompareTupleFilter) filter); return null; }
BitMapFilterEvaluator { public ConciseSet evaluate(TupleFilter filter) { if (filter == null) return null; if (filter instanceof LogicalTupleFilter) return evalLogical((LogicalTupleFilter) filter); if (filter instanceof CompareTupleFilter) return evalCompare((CompareTupleFilter) filter); return null; } }
BitMapFilterEvaluator { public ConciseSet evaluate(TupleFilter filter) { if (filter == null) return null; if (filter instanceof LogicalTupleFilter) return evalLogical((LogicalTupleFilter) filter); if (filter instanceof CompareTupleFilter) return evalCompare((CompareTupleFilter) filter); return null; } BitMapFilterEvaluator(BitMapProvider bitMapProvider); }
BitMapFilterEvaluator { public ConciseSet evaluate(TupleFilter filter) { if (filter == null) return null; if (filter instanceof LogicalTupleFilter) return evalLogical((LogicalTupleFilter) filter); if (filter instanceof CompareTupleFilter) return evalCompare((CompareTupleFilter) filter); return null; } BitMapFilterEvaluator(BitMapProvider bitMapProvider); ConciseSet evaluate(TupleFilter filter); static void main(String[] args); }
BitMapFilterEvaluator { public ConciseSet evaluate(TupleFilter filter) { if (filter == null) return null; if (filter instanceof LogicalTupleFilter) return evalLogical((LogicalTupleFilter) filter); if (filter instanceof CompareTupleFilter) return evalCompare((CompareTupleFilter) filter); return null; } BitMapFilterEvaluator(BitMapProvider bitMapProvider); ConciseSet evaluate(TupleFilter filter); static void main(String[] args);  }