@Override public boolean requiresFullTextIndex() { for (ConstraintImpl c : getConstraints()) { if (c.requiresFullTextIndex()) { return true; } } return false; }
@Override public void restrict(FilterImpl f) { Set<PropertyExistenceImpl> set = getPropertyExistenceConditions(); if (!set.isEmpty()) { for (PropertyExistenceImpl p : set) { p.restrict(f); } } }
@Override public void restrictPushDown(SelectorImpl s) { restrictPushDownNotExists(s); restrictPushDownInList(s); }
public OrImpl or(ConstraintImpl constraint1, ConstraintImpl constraint2) { return new OrImpl(constraint1, constraint2); }
@Override public boolean visit(OrImpl node) { node.setQuery(query); return super.visit(node); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); for (ConstraintImpl constraint : constraints) { if (builder.length() > 0) { builder.append(" or "); } builder.append(protect(constraint)); } return builder.toString(); }
public OrImpl or(ConstraintImpl constraint1, ConstraintImpl constraint2) { return new OrImpl(constraint1, constraint2); }
@Override public void restrictPushDown(SelectorImpl s) { restrictPushDownNotExists(s); restrictPushDownInList(s); }
@Override public boolean visit(OrImpl node) { node.setQuery(query); return super.visit(node); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); for (ConstraintImpl constraint : constraints) { if (builder.length() > 0) { builder.append(" or "); } builder.append(protect(constraint)); } return builder.toString(); }
public OrImpl or(ConstraintImpl constraint1, ConstraintImpl constraint2) { return new OrImpl(constraint1, constraint2); }
@Override public boolean requiresFullTextIndex() { for (ConstraintImpl c : getConstraints()) { if (c.requiresFullTextIndex()) { return true; } } return false; }
@Override public void restrictPushDown(SelectorImpl s) { restrictPushDownNotExists(s); restrictPushDownInList(s); }
@Override public void restrict(FilterImpl f) { Set<PropertyExistenceImpl> set = getPropertyExistenceConditions(); if (!set.isEmpty()) { for (PropertyExistenceImpl p : set) { p.restrict(f); } } }
@Override public boolean visit(OrImpl node) { node.setQuery(query); return super.visit(node); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); for (ConstraintImpl constraint : constraints) { if (builder.length() > 0) { builder.append(" or "); } builder.append(protect(constraint)); } return builder.toString(); }
@Override public AstElement copyOf() { List<ConstraintImpl> clone = newArrayList(); for (ConstraintImpl c : constraints) { clone.add((ConstraintImpl) copyElementAndCheckReference(c)); } return new OrImpl(clone); }