Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.Bound


       *
       * And(Not(Bound(?acl_attr1)), Not(Bound(?acl_attr_1), ...)
       */
      And and = new And();
      for (Var attributeVar : attributeVars) {
        and.addArg(new Not(new Bound(attributeVar)));
      }

      if (and.getArgs().size() == 1) {
        filterConditions.addArg(and.getArg(0));
      }
View Full Code Here


  @Override
  public Bound visit(ASTBound node, Object data)
    throws VisitorException
  {
    return new Bound((Var)super.visit(node, data));
  }
View Full Code Here

  @Override
  public ValueExpr visit(ASTBound node, Object data)
    throws VisitorException
  {
    Var var = (Var)node.getArg().jjtAccept(this, null);
    return new Bound(var);
  }
View Full Code Here

      // No need to keep the comparison, but we do need to make sure
      // that the variable is not null in case it comes from an
      // optional statement pattern. Replace the SameTerm constraint with a
      // Bound constraint.
      filter.setCondition(new Bound(var));

      // Check if the variable is used in a pattern outside of a left join.
      // If so, removed this filter condition
      filter.visit(new BoundOptimizer());
    }
View Full Code Here

    private List<Var> vars = new ArrayList<Var>();

    @Override
    public void meet(Filter filter) {
      if (filter.getCondition() instanceof Bound) {
        Bound bound = (Bound)filter.getCondition();
        vars.add(bound.getArg());
        innerJoins.add(Boolean.FALSE);
        filter.getArg().visit(this);
        vars.remove(vars.size() - 1);
        if (innerJoins.remove(innerJoins.size() - 1)) {
          filter.replaceWith(filter.getArg());
View Full Code Here

  @Override
  public Bound visit(ASTBound node, Object data)
    throws VisitorException
  {
    return new Bound((Var)super.visit(node, data));
  }
View Full Code Here

      // No need to keep the comparison, but we do need to make sure
      // that the variable is not null in case it comes from an
      // optional statement pattern. Replace the SameTerm constraint with a
      // Bound constraint.
      filter.setCondition(new Bound(var));
    }
View Full Code Here

  @Override
  public ValueExpr visit(ASTBound node, Object data)
    throws VisitorException
  {
    Var var = (Var)node.getArg().jjtAccept(this, null);
    return new Bound(var);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.Bound

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.