@Override public void meet(Union union) { Filter clone = new Filter(); clone.setCondition(filter.getCondition().clone()); relocate(filter, union.getLeftArg()); relocate(clone, union.getRightArg()); FilterRelocator.relocate(filter); FilterRelocator.relocate(clone); }
public long getCardinality(Union union, BindingSet bindings) { return getCardinality(union.getLeftArg(), bindings) + getCardinality(union.getRightArg(), bindings); }