Package org.openrdf.query.algebra.Compare

Examples of org.openrdf.query.algebra.Compare.CompareOp


  public Compare visit(ASTCompare node, Object data)
    throws VisitorException
  {
    ValueExpr leftArg = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    ValueExpr rightArg = (ValueExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp operator = node.getOperator().getValue();

    return new Compare(leftArg, rightArg, operator);
  }
View Full Code Here


  public CompareAny visit(ASTCompareAny node, Object data)
    throws VisitorException
  {
    ValueExpr valueExpr = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();

    return new CompareAny(valueExpr, tupleExpr, op);
  }
View Full Code Here

  public CompareAll visit(ASTCompareAll node, Object data)
    throws VisitorException
  {
    ValueExpr valueExpr = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();

    return new CompareAll(valueExpr, tupleExpr, op);
  }
View Full Code Here

  public void meet(Compare compare)
    throws UnsupportedRdbmsOperatorException
  {
    ValueExpr left = compare.getLeftArg();
    ValueExpr right = compare.getRightArg();
    CompareOp op = compare.getOperator();
    switch (op) {
      case EQ:
        if (isTerm(left) && isTerm(right)) {
          result = termsEqual(left, right);
        }
View Full Code Here

  public Compare visit(ASTCompare node, Object data)
    throws VisitorException
  {
    ValueExpr leftArg = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    ValueExpr rightArg = (ValueExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp operator = node.getOperator().getValue();

    return new Compare(leftArg, rightArg, operator);
  }
View Full Code Here

  public CompareAny visit(ASTCompareAny node, Object data)
    throws VisitorException
  {
    ValueExpr valueExpr = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();

    return new CompareAny(valueExpr, tupleExpr, op);
  }
View Full Code Here

  public CompareAll visit(ASTCompareAll node, Object data)
    throws VisitorException
  {
    ValueExpr valueExpr = (ValueExpr)node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr)node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();

    return new CompareAll(valueExpr, tupleExpr, op);
  }
View Full Code Here

    public Object visit(ASTCompare compareNode, Object data)
      throws VisitorException
    {
      boolean leftIsNull = compareNode.getLeftOperand() instanceof ASTNull;
      boolean rightIsNull = compareNode.getRightOperand() instanceof ASTNull;
      CompareOp operator = compareNode.getOperator().getValue();

      if (leftIsNull && rightIsNull) {
        switch (operator) {
          case EQ:
            logger.warn("Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
View Full Code Here

  public void meet(Compare compare)
    throws UnsupportedRdbmsOperatorException
  {
    ValueExpr left = compare.getLeftArg();
    ValueExpr right = compare.getRightArg();
    CompareOp op = compare.getOperator();
    switch (op) {
      case EQ:
        if (isTerm(left) && isTerm(right)) {
          result = termsEqual(left, right);
        }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.Compare.CompareOp

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.