Package de.fuberlin.wiwiss.d2rq.expr

Examples of de.fuberlin.wiwiss.d2rq.expr.Constant


  // FIXME: This doesn't take column functions other than IDENTITY into account
  // The usesColumnFunctions() method is here to allow detection of this case.
  public Expression toExpression() {
    List<Expression> parts = new ArrayList<Expression>(literalParts.size() * 2 + 1);
    parts.add(new Constant(firstLiteralPart));
    for (int i = 0; i < columns.size(); i++) {
      parts.add(new AttributeExpr(columns.get(i)));
      parts.add(new Constant(literalParts.get(i)));
    }
    return Concatenation.create(parts);
  }
View Full Code Here


    for (String attributeName: expectedValues.keySet()) {
      String attributeValue = (String) expectedValues.get(attributeName);
      Attribute attribute = SQL.parseAttribute(attributeName);
      expressions.add(Equality.create(
          new AttributeExpr(attribute),
          new Constant(attributeValue, attribute)));
    }
    Expression expr = Conjunction.create(expressions);
    assertEquals(expr, pattern.valueExpression(value));
  }
View Full Code Here

    return result.toString();
  }
 
  public Expression toExpression() {
    List<Expression> parts = new ArrayList<Expression>();
    parts.add(new Constant(classMapID));
    for (Attribute attribute: attributes) {
      parts.add(new Constant(DELIMITER));
      parts.add(new AttributeExpr(attribute));
    }
    return Concatenation.create(parts);
  }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.expr.Constant

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.