Examples of CompareOp


Examples of org.lilyproject.repository.api.CompareOp

        if (filter.getFieldValue() == null) {
            throw new IllegalArgumentException("Field value should be specified in FieldValueFilter");
        }

        CompareOp compareOp = filter.getCompareOp() != null ? filter.getCompareOp() : CompareOp.EQUAL;
        if (compareOp != CompareOp.EQUAL && compareOp != CompareOp.NOT_EQUAL) {
            throw new IllegalArgumentException("FieldValueFilter does not support this compare operator: " + compareOp);
        }

        FieldType fieldType = repository.getTypeManager().getFieldTypeByName(filter.getField());
View Full Code Here

Examples of org.lilyproject.repository.api.CompareOp

            }

            boolean allowMissing = JsonUtil.getBoolean(conditionNode, "allowMissing", false);

            String operator = JsonUtil.getString(conditionNode, "operator", null);
            CompareOp op = CompareOp.EQUAL;
            if (operator != null) {
                try {
                    op = CompareOp.valueOf(operator.toUpperCase());
                } catch (IllegalArgumentException e) {
                    throw new JsonFormatException("Invalid comparison operator in mutation condition: " + operator);
View Full Code Here

Examples of org.lilyproject.repository.api.CompareOp

            if (avroCond.getValue() != null) {
                ValueType valueType = repository.getTypeManager().getValueType(avroCond.getValueType());
                value = valueType.read(avroCond.getValue().array());
            }

            CompareOp op = convert(avroCond.getOperator());
            boolean allowMissing = avroCond.getAllowMissing();

            conditions.add(new MutationCondition(name, op, value, allowMissing));
        }
View Full Code Here

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

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

  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

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

  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

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

  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

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

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

  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

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

  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
TOP
Copyright © 2018 www.massapi.com. 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.